Skip to content

Commit 6240df2

Browse files
gierensqb42
andauthored
(json PR 206) Fix typo in comment (sing -> sign) (#4)
* Fix typo in comment (sing -> sign) * Fix further typos in tests/ Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de> Co-authored-by: qb42 <quinnbattaglia@protonmail.com>
1 parent 82d3899 commit 6240df2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/number.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct Number {
4242
// Decimal exponent, analog to `e` notation in string form.
4343
exponent: i16,
4444

45-
// Integer base before sing and exponent applied.
45+
// Integer base before sign and exponent applied.
4646
mantissa: u64,
4747
}
4848

tests/json_checker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mod json_checker_fail {
154154
}
155155

156156
#[test]
157-
fn missmatch() {
157+
fn mismatch() {
158158
assert!(parse(r#"["mismatch"}"#).is_err());
159159
}
160160
}

tests/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ fn parse_and_index_mut_from_null() {
238238

239239
assert!(data["foo"]["bar"].is_null());
240240

241-
// test that data didn't coerece to object
241+
// test that data didn't coerce to object
242242
assert!(data.is_null());
243243

244244
data["foo"]["bar"] = 100.into();

0 commit comments

Comments
 (0)