Skip to content

Commit 477c4c3

Browse files
committed
Rollup merge of rust-lang#32084 - gokhanettin:typo-in-comment, r=alexcrichton
Fix typos - mismatching parentheses in comments Fixes mismatching parentheses in the comments of precision example. r? @steveklabnik
2 parents 86fb351 + 2f6f714 commit 477c4c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcollections/fmt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,20 +429,20 @@
429429
//! For example, these:
430430
//!
431431
//! ```
432-
//! // Hello {arg 0 (x)} is {arg 1 (0.01} with precision specified inline (5)}
432+
//! // Hello {arg 0 (x)} is {arg 1 (0.01) with precision specified inline (5)}
433433
//! println!("Hello {0} is {1:.5}", "x", 0.01);
434434
//!
435-
//! // Hello {arg 1 (x)} is {arg 2 (0.01} with precision specified in arg 0 (5)}
435+
//! // Hello {arg 1 (x)} is {arg 2 (0.01) with precision specified in arg 0 (5)}
436436
//! println!("Hello {1} is {2:.0$}", 5, "x", 0.01);
437437
//!
438-
//! // Hello {arg 0 (x)} is {arg 2 (0.01} with precision specified in arg 1 (5)}
438+
//! // Hello {arg 0 (x)} is {arg 2 (0.01) with precision specified in arg 1 (5)}
439439
//! println!("Hello {0} is {2:.1$}", "x", 5, 0.01);
440440
//!
441-
//! // Hello {next arg (x)} is {second of next two args (0.01} with precision
441+
//! // Hello {next arg (x)} is {second of next two args (0.01) with precision
442442
//! // specified in first of next two args (5)}
443443
//! println!("Hello {} is {:.*}", "x", 5, 0.01);
444444
//!
445-
//! // Hello {next arg (x)} is {arg 2 (0.01} with precision
445+
//! // Hello {next arg (x)} is {arg 2 (0.01) with precision
446446
//! // specified in its predecessor (5)}
447447
//! println!("Hello {} is {2:.*}", "x", 5, 0.01);
448448
//! ```

0 commit comments

Comments
 (0)