Add doctest
This commit is contained in:
parent
1dac6da408
commit
0a9b49c794
1 changed files with 1 additions and 0 deletions
|
|
@ -1827,6 +1827,7 @@ impl<'a> Formatter<'a> {
|
|||
/// }
|
||||
///
|
||||
/// assert_eq!(&format!("{:+}", Foo(23)), "Foo(+23)");
|
||||
/// assert_eq!(&format!("{:+}", Foo(-32)), "Foo(-23)");
|
||||
/// assert_eq!(&format!("{}", Foo(23)), "Foo(23)");
|
||||
/// ```
|
||||
#[must_use]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue