about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-09 23:29:58 +0100
committerGitHub <noreply@github.com>2022-02-09 23:29:58 +0100
commit6db0f9ca0dcce3c781fe6f4e7fc5f3957b41dfef (patch)
tree3ac74fe7f82b0b51902f5d4e2c5d283928d41c6e
parent84c28041b486f229431b8c88fa24cb03e05fb70c (diff)
parent3d3318b4068cdc0a35e7d18aa91b3dd35ea27c86 (diff)
downloadrust-6db0f9ca0dcce3c781fe6f4e7fc5f3957b41dfef.tar.gz
rust-6db0f9ca0dcce3c781fe6f4e7fc5f3957b41dfef.zip
Rollup merge of #93799 - wooorm:patch-1, r=dtolnay
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?
-rw-r--r--library/alloc/src/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/fmt.rs b/library/alloc/src/fmt.rs
index b4d16d74db4..aeb7554f8e9 100644
--- a/library/alloc/src/fmt.rs
+++ b/library/alloc/src/fmt.rs
@@ -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"