diff --git a/README.md b/README.md index d832674..1fe4ea5 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,9 @@ use serde_json; #[derive(Debug,Serialize,Deserialize)] struct MyStruct { name: String, - // this will be witten to json as string + // this will be written to json as string value: BigDecimal, - // this will be witten to json as number + // this will be written to json as number #[serde(with = "bigdecimal::serde::json_num")] number: BigDecimal, } diff --git a/src/impl_fmt.rs b/src/impl_fmt.rs index 9668896..380aa10 100644 --- a/src/impl_fmt.rs +++ b/src/impl_fmt.rs @@ -128,7 +128,7 @@ fn format_full_scale( debug_assert_ne!(digits.len(), 0); if this.scale <= 0 { - // formating an integer value (add trailing zeros to the right) + // formatting an integer value (add trailing zeros to the right) zero_right_pad_integer_ascii_digits(&mut digits, &mut exp, f.precision()); } else { let scale = this.scale as usize;