Skip to content

Commit ef5acff

Browse files
committed
Fix some English spelling errors
1 parent d8a5242 commit ef5acff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libserialize/json.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,12 +956,12 @@ impl Json {
956956
}
957957
}
958958

959-
/// Returns true if the Json value is a Array. Returns false otherwise.
959+
/// Returns true if the Json value is an Array. Returns false otherwise.
960960
pub fn is_array<'a>(&'a self) -> bool {
961961
self.as_array().is_some()
962962
}
963963

964-
/// If the Json value is a Array, returns the associated vector.
964+
/// If the Json value is an Array, returns the associated vector.
965965
/// Returns None otherwise.
966966
pub fn as_array<'a>(&'a self) -> Option<&'a JsonArray> {
967967
match self {
@@ -1109,9 +1109,9 @@ pub enum JsonEvent {
11091109

11101110
#[deriving(PartialEq, Show)]
11111111
enum ParserState {
1112-
// Parse a value in a array, true means first element.
1112+
// Parse a value in an array, true means first element.
11131113
ParseArray(bool),
1114-
// Parse ',' or ']' after an element in a array.
1114+
// Parse ',' or ']' after an element in an array.
11151115
ParseArrayComma,
11161116
// Parse a key:value in an object, true means first element.
11171117
ParseObject(bool),

0 commit comments

Comments
 (0)