about summary refs log tree commit diff
path: root/src/libserialize
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-06-08 13:22:49 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-06-08 13:39:42 -0400
commit45e56eccbed3161dd9de547c6c2dcf618114a484 (patch)
tree4eb63b08a1f5beebc194419162b0f5c5dce1c0e5 /src/libserialize
parent17ba0cf4289d6da632aab4cf242ad74dea94fe37 (diff)
downloadrust-45e56eccbed3161dd9de547c6c2dcf618114a484.tar.gz
rust-45e56eccbed3161dd9de547c6c2dcf618114a484.zip
Fix spelling errors in comments.
Diffstat (limited to 'src/libserialize')
-rw-r--r--src/libserialize/json.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs
index 046d25f98e4..9907faae52b 100644
--- a/src/libserialize/json.rs
+++ b/src/libserialize/json.rs
@@ -992,7 +992,7 @@ enum ParserState {
     ParseObject(bool),
     // Parse ',' or ']' after an element in an object.
     ParseObjectComma,
-    // Initialial state.
+    // Initial state.
     ParseStart,
     // Expecting the stream to end.
     ParseBeforeFinish,
@@ -1152,7 +1152,7 @@ pub struct Parser<T> {
     // We maintain a stack representing where we are in the logical structure
     // of the JSON stream.
     stack: Stack,
-    // A state machine is kept to make it possible to interupt and resume parsing.
+    // A state machine is kept to make it possible to interrupt and resume parsing.
     state: ParserState,
 }
 
@@ -1449,7 +1449,7 @@ impl<T: Iterator<char>> Parser<T> {
     // information to return a JsonEvent.
     // Manages an internal state so that parsing can be interrupted and resumed.
     // Also keeps track of the position in the logical structure of the json
-    // stream int the form of a stack that can be queried by the user usng the
+    // stream int the form of a stack that can be queried by the user using the
     // stack() method.
     fn parse(&mut self) -> JsonEvent {
         loop {