Skip to content

Commit

Permalink
Fix typos in README and impl_fmt.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
akubera committed Jun 15, 2024
1 parent 99b8951 commit aabc68b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion src/impl_fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aabc68b

Please sign in to comment.