This example was broken
The provided example to the `sign_plus` method on `fmt` is broken, it displays the `-` sign twice for negative numbers.
This commit is contained in:
parent
0568b0a3de
commit
1dac6da408
1 changed files with 1 additions and 1 deletions
|
|
@ -1819,7 +1819,7 @@ impl<'a> Formatter<'a> {
|
|||
/// write!(formatter,
|
||||
/// "Foo({}{})",
|
||||
/// if self.0 < 0 { '-' } else { '+' },
|
||||
/// self.0)
|
||||
/// self.0.abs())
|
||||
/// } else {
|
||||
/// write!(formatter, "Foo({})", self.0)
|
||||
/// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue