Skip to content

Commit 2cc7da6

Browse files
authored
Rollup merge of #75424 - joseluis:patch-1, r=joshtriplett
fix wrong word in documentation Change "two" to "three", since there are three significantly different things printed below that sentence: --- While these: ```rust println!("{}, `{name:.*}` has 3 fractional digits", "Hello", 3, name=1234.56); println!("{}, `{name:.*}` has 3 characters", "Hello", 3, name="1234.56"); println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56"); ``` print two significantly different things: ``` rust Hello, `1234.560` has 3 fractional digits Hello, `123` has 3 characters Hello, ` 123` has 3 right-aligned characters ``` --- [`https://doc.rust-lang.org/std/fmt/#precision`](https://doc.rust-lang.org/std/fmt/#precision)
2 parents a8b0a3c + df5c889 commit 2cc7da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
//! println!("{}, `{name:>8.*}` has 3 right-aligned characters", "Hello", 3, name="1234.56");
240240
//! ```
241241
//!
242-
//! print two significantly different things:
242+
//! print three significantly different things:
243243
//!
244244
//! ```text
245245
//! Hello, `1234.560` has 3 fractional digits

0 commit comments

Comments
 (0)