Skip to content

Commit

Permalink
Rollup merge of #93799 - wooorm:patch-1, r=dtolnay
Browse files Browse the repository at this point in the history
Fix typo in `std::fmt` docs

Hey!

Reading the docs (https://doc.rust-lang.org/std/fmt/#named-parameters), this seems like a typo?

The docs here also seem to mix “named argument” and “named parameter”? Intentional? Mistake?
  • Loading branch information
matthiaskrgr authored Feb 9, 2022
2 parents 2184cf7 + 3d3318b commit 07d0299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
//! identifier '=' expression
//! ```
//!
//! For example, the following [`format!`] expressions all use named argument:
//! For example, the following [`format!`] expressions all use named arguments:
//!
//! ```
//! format!("{argument}", argument = "test"); // => "test"
Expand Down

0 comments on commit 07d0299

Please sign in to comment.