diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-03-08 21:44:11 +0300 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-03-08 21:44:11 +0300 |
| commit | 477c4c37f0bab7d2d3e8752eb0ec58f00c618bfa (patch) | |
| tree | 5c00a0d75fa8f9b058783504dc8921c5de94a3a9 /src | |
| parent | 86fb3510595ca8d61d6ea6fc2ddd0fbf9ab4d4e1 (diff) | |
| parent | 2f6f714d852b6186068672eb2fcabbcc6d765921 (diff) | |
| download | rust-477c4c37f0bab7d2d3e8752eb0ec58f00c618bfa.tar.gz rust-477c4c37f0bab7d2d3e8752eb0ec58f00c618bfa.zip | |
Rollup merge of #32084 - gokhanettin:typo-in-comment, r=alexcrichton
Fix typos - mismatching parentheses in comments Fixes mismatching parentheses in the comments of precision example. r? @steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/fmt.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs index 97b01a607f5..435c9f0e9f4 100644 --- a/src/libcollections/fmt.rs +++ b/src/libcollections/fmt.rs @@ -429,20 +429,20 @@ //! For example, these: //! //! ``` -//! // Hello {arg 0 (x)} is {arg 1 (0.01} with precision specified inline (5)} +//! // Hello {arg 0 (x)} is {arg 1 (0.01) with precision specified inline (5)} //! println!("Hello {0} is {1:.5}", "x", 0.01); //! -//! // Hello {arg 1 (x)} is {arg 2 (0.01} with precision specified in arg 0 (5)} +//! // Hello {arg 1 (x)} is {arg 2 (0.01) with precision specified in arg 0 (5)} //! println!("Hello {1} is {2:.0$}", 5, "x", 0.01); //! -//! // Hello {arg 0 (x)} is {arg 2 (0.01} with precision specified in arg 1 (5)} +//! // Hello {arg 0 (x)} is {arg 2 (0.01) with precision specified in arg 1 (5)} //! println!("Hello {0} is {2:.1$}", "x", 5, 0.01); //! -//! // Hello {next arg (x)} is {second of next two args (0.01} with precision +//! // Hello {next arg (x)} is {second of next two args (0.01) with precision //! // specified in first of next two args (5)} //! println!("Hello {} is {:.*}", "x", 5, 0.01); //! -//! // Hello {next arg (x)} is {arg 2 (0.01} with precision +//! // Hello {next arg (x)} is {arg 2 (0.01) with precision //! // specified in its predecessor (5)} //! println!("Hello {} is {2:.*}", "x", 5, 0.01); //! ``` |
