This repository was archived by the owner on May 28, 2025. It is now read-only.
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 50
50
//! The internal iterator over the argument has not been advanced by the time
51
51
//! the first `{}` is seen, so it prints the first argument. Then upon reaching
52
52
//! 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.
55
55
//!
56
56
//! A format string is required to use all of its arguments, otherwise it is a
57
57
//! compile-time error. You may refer to the same argument more than once in the
60
60
//! ## Named parameters
61
61
//!
62
62
//! 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
64
64
//! leverage named parameters. Named parameters are listed at the end of the
65
65
//! argument list and have the syntax:
66
66
//!
77
77
//! ```
78
78
//!
79
79
//! 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
81
81
//! valid to provide named parameters that are unused by the format string.
82
82
//!
83
83
//! # Formatting Parameters
You can’t perform that action at this time.
0 commit comments