Skip to content

Commit

Permalink
Add doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mousetail authored Sep 7, 2022
1 parent 1dac6da commit 0a9b49c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0a9b49c

Please sign in to comment.