|
240 | 240 | //! // Hello {arg 0 ("x")} is {arg 2 (0.01) with precision specified in arg 1 (5)}
|
241 | 241 | //! println!("Hello {0} is {2:.1$}", "x", 5, 0.01);
|
242 | 242 | //!
|
243 |
| -//! // Hello {next arg ("x")} is {second of next two args (0.01) with precision |
244 |
| -//! // specified in first of next two args (5)} |
| 243 | +//! // Hello {next arg -> arg 0 ("x")} is {second of next two args -> arg 2 (0.01) with precision |
| 244 | +//! // specified in first of next two args -> arg 1 (5)} |
245 | 245 | //! println!("Hello {} is {:.*}", "x", 5, 0.01);
|
246 | 246 | //!
|
247 | 247 | //! // Hello {arg 1 ("x")} is {arg 2 (0.01) with precision
|
248 |
| -//! // specified in next arg (5)} |
| 248 | +//! // specified in next arg -> arg 0 (5)} |
249 | 249 | //! println!("Hello {1} is {2:.*}", 5, "x", 0.01);
|
250 | 250 | //!
|
251 |
| -//! // Hello {next arg ("x")} is {arg 2 (0.01) with precision |
252 |
| -//! // specified in next arg (5)} |
| 251 | +//! // Hello {next arg -> arg 0 ("x")} is {arg 2 (0.01) with precision |
| 252 | +//! // specified in next arg -> arg 1 (5)} |
253 | 253 | //! println!("Hello {} is {2:.*}", "x", 5, 0.01);
|
254 | 254 | //!
|
255 |
| -//! // Hello {next arg ("x")} is {arg "number" (0.01) with precision specified |
| 255 | +//! // Hello {next arg -> arg 0 ("x")} is {arg "number" (0.01) with precision specified |
256 | 256 | //! // in arg "prec" (5)}
|
257 | 257 | //! println!("Hello {} is {number:.prec$}", "x", prec = 5, number = 0.01);
|
258 | 258 | //! ```
|
|
0 commit comments