diff options
| author | Corey Farwell <coreyf@rwell.org> | 2014-11-19 14:17:10 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2014-11-19 14:17:10 -0500 |
| commit | ef5acff0db6ad7660e46e42f3acac4034df51723 (patch) | |
| tree | 4d8be3b27850cf0a441e0c139ec82fdf888c3752 /src/libserialize | |
| parent | d8a5242195c7e8734c6726494e9b230916b61783 (diff) | |
Fix some English spelling errors
Diffstat (limited to 'src/libserialize')
| -rw-r--r-- | src/libserialize/json.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index 2e5366e126e..a50a18eab30 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -956,12 +956,12 @@ impl Json { } } - /// Returns true if the Json value is a Array. Returns false otherwise. + /// Returns true if the Json value is an Array. Returns false otherwise. pub fn is_array<'a>(&'a self) -> bool { self.as_array().is_some() } - /// If the Json value is a Array, returns the associated vector. + /// If the Json value is an Array, returns the associated vector. /// Returns None otherwise. pub fn as_array<'a>(&'a self) -> Option<&'a JsonArray> { match self { @@ -1109,9 +1109,9 @@ pub enum JsonEvent { #[deriving(PartialEq, Show)] enum ParserState { - // Parse a value in a array, true means first element. + // Parse a value in an array, true means first element. ParseArray(bool), - // Parse ',' or ']' after an element in a array. + // Parse ',' or ']' after an element in an array. ParseArrayComma, // Parse a key:value in an object, true means first element. ParseObject(bool), |
