File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5050//! The internal iterator over the argument has not been advanced by the time
5151//! the first `{}` is seen, so it prints the first argument. Then upon reaching
5252//! the second `{}`, the iterator has advanced forward to the second argument.
53- //! Essentially, parameters which explicitly name their argument do not affect
54- //! parameters which do not name an argument in terms of positional specifiers.
53+ //! Essentially, parameters that explicitly name their argument do not affect
54+ //! parameters that do not name an argument in terms of positional specifiers.
5555//!
5656//! A format string is required to use all of its arguments, otherwise it is a
5757//! compile-time error. You may refer to the same argument more than once in the
6060//! ## Named parameters
6161//!
6262//! Rust itself does not have a Python-like equivalent of named parameters to a
63- //! function, but the [`format!`] macro is a syntax extension which allows it to
63+ //! function, but the [`format!`] macro is a syntax extension that allows it to
6464//! leverage named parameters. Named parameters are listed at the end of the
6565//! argument list and have the syntax:
6666//!
7777//! ```
7878//!
7979//! It is not valid to put positional parameters (those without names) after
80- //! arguments which have names. Like with positional parameters, it is not
80+ //! arguments that have names. Like with positional parameters, it is not
8181//! valid to provide named parameters that are unused by the format string.
8282//!
8383//! # Formatting Parameters
You can’t perform that action at this time.
0 commit comments