diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-26 18:51:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 18:51:41 +0200 |
| commit | 9babe98562745dbdd6d7d376a004f91078cbe35e (patch) | |
| tree | 0c1bcefc27f7a7a7c9701831684348e00cfd9c05 /library/core/src/fmt | |
| parent | ea8bd06b56bd34098b315f811d911a1d4ad9cb5d (diff) | |
| parent | 9a55e9edc57fa939185542be7e2d5b89418c78c9 (diff) | |
| download | rust-9babe98562745dbdd6d7d376a004f91078cbe35e.tar.gz rust-9babe98562745dbdd6d7d376a004f91078cbe35e.zip | |
Rollup merge of #110419 - jsoref:spelling-library, r=jyn514
Spelling library Split per https://github.com/rust-lang/rust/pull/110392 I can squash once people are happy w/ the changes. It's really uncommon for large sets of changes to be perfectly acceptable w/o at least some changes. I probably won't have time to respond until tomorrow or the next day
Diffstat (limited to 'library/core/src/fmt')
| -rw-r--r-- | library/core/src/fmt/builders.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs index 7da49b04aaa..d1c6b67b278 100644 --- a/library/core/src/fmt/builders.rs +++ b/library/core/src/fmt/builders.rs @@ -109,14 +109,14 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> { /// .field("bar", &self.bar) // We add `bar` field. /// .field("another", &self.another) // We add `another` field. /// // We even add a field which doesn't exist (because why not?). - /// .field("not_existing_field", &1) + /// .field("nonexistent_field", &1) /// .finish() // We're good to go! /// } /// } /// /// assert_eq!( /// format!("{:?}", Bar { bar: 10, another: "Hello World".to_string() }), - /// "Bar { bar: 10, another: \"Hello World\", not_existing_field: 1 }", + /// "Bar { bar: 10, another: \"Hello World\", nonexistent_field: 1 }", /// ); /// ``` #[stable(feature = "debug_builders", since = "1.2.0")] |
