Skip to content

Commit

Permalink
Fix some English spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Nov 19, 2014
1 parent d8a5242 commit ef5acff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libserialize/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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),
Expand Down

1 comment on commit ef5acff

@bstrie
Copy link

@bstrie bstrie commented on ef5acff Nov 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.