Skip to content

Commit acf66b1

Browse files
committed
Clarify Argument docs.
Fixes #15830.
1 parent d7cfc34 commit acf66b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/fmt/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ impl<'a> Arguments<'a> {
127127
/// to prevent modification.
128128
///
129129
/// The `format_args!` macro will safely create an instance of this structure
130-
/// and pass it to a user-supplied function. The macro validates the format
131-
/// string at compile-time so usage of the `write` and `format` functions can
132-
/// be safely performed.
130+
/// and pass it to a function or closure, passed as the first argument. The
131+
/// macro validates the format string at compile-time so usage of the `write`
132+
/// and `format` functions can be safely performed.
133133
pub struct Arguments<'a> {
134134
fmt: &'a [rt::Piece<'a>],
135135
args: &'a [Argument<'a>],

0 commit comments

Comments
 (0)