Skip to content

Commit 064972c

Browse files
committed
Whoops, please tidy
1 parent eb5b842 commit 064972c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/libcollections/fmt.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@
402402
//!
403403
//! For floating-point types, this indicates how many digits after the decimal point should be
404404
//! printed.
405-
//!
405+
//!
406406
//! There are three possible ways to specify the desired `precision`:
407407
//!
408-
//! There are three possible ways to specify the desired `precision`:
409-
//! 1. An integer `.N`,
408+
//! There are three possible ways to specify the desired `precision`:
409+
//! 1. An integer `.N`,
410410
//! 2. an integer followed by dollar sign `.N$`, or
411411
//! 3. an asterisk `.*`.
412412
//!
@@ -418,23 +418,23 @@
418418
//! the first input holds the `usize` precision, and the second holds the value to print. Note
419419
//! that in this case, if one uses the format string `{<arg>:<spec>.*}`, then the `<arg>` part
420420
//! refers to the *value* to print, and the `precision` must come in the input preceding `<arg>`.
421-
//!
422-
//! For example, these:
421+
//!
422+
//! For example, these:
423423
//!
424424
//! ```
425425
//! // Hello {arg 0 (x)} is {arg 1 (0.01} with precision specified inline (5)}
426426
//! println!("Hello {0} is {1:.5}", "x", 0.01);
427-
//!
427+
//!
428428
//! // Hello {arg 1 (x)} is {arg 2 (0.01} with precision specified in arg 0 (5)}
429429
//! println!("Hello {1} is {2:.0$}", 5, "x", 0.01);
430430
//!
431431
//! // Hello {arg 0 (x)} is {arg 2 (0.01} with precision specified in arg 1 (5)}
432432
//! println!("Hello {0} is {2:.1$}", "x", 5, 0.01);
433-
//!
433+
//!
434434
//! // Hello {next arg (x)} is {second of next two args (0.01} with precision
435435
//! // specified in first of next two args (5)}
436436
//! println!("Hello {} is {:.*}", "x", 5, 0.01);
437-
//!
437+
//!
438438
//! // Hello {next arg (x)} is {arg 2 (0.01} with precision
439439
//! // specified in its predecessor (5)}
440440
//! println!("Hello {} is {2:.*}", "x", 5, 0.01);
@@ -454,7 +454,7 @@
454454
//! ```
455455
//!
456456
//! print two significantly different things:
457-
//!
457+
//!
458458
//! ```text
459459
//! Hello, `1234.560` has 3 fractional digits
460460
//! Hello, `123` has 3 characters

0 commit comments

Comments
 (0)