diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-12 12:07:21 +0900 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-12 12:07:21 +0900 | 
| commit | 2cc7da6f9555f9bb911bc65a1c858ed9e7a7126d (patch) | |
| tree | 990b794fbca6f7e6ffef0a9253da11cf8ee405d3 /src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs | |
| parent | a8b0a3ca8e275799d66c3f8c36607553b9e86541 (diff) | |
| parent | df5c889784b29c0e2ed102b59dcae0308cc45d31 (diff) | |
| download | rust-2cc7da6f9555f9bb911bc65a1c858ed9e7a7126d.tar.gz rust-2cc7da6f9555f9bb911bc65a1c858ed9e7a7126d.zip | |
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)
Diffstat (limited to 'src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs')
0 files changed, 0 insertions, 0 deletions
