about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2020-06-11 05:21:15 +0100
committerGitHub <noreply@github.com>2020-06-11 05:21:15 +0100
commit7dc19b0bd5e8ca02f9f924098d9fac928441926b (patch)
tree039df815f68457a823f9d67c5c65aa3ea5760f5b /src/libcore/num
parent5859f6e4f792afb663ac2dc98191cca08ac9b4ae (diff)
downloadrust-7dc19b0bd5e8ca02f9f924098d9fac928441926b.tar.gz
rust-7dc19b0bd5e8ca02f9f924098d9fac928441926b.zip
Update src/libcore/num/mod.rs
Co-authored-by: lzutao <taolzu@gmail.com>
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index b43994868de..fe131de66f1 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -3309,8 +3309,8 @@ Basic usage:
 
 ```
 ", $Feature, "assert_eq!(100", stringify!($SelfT), ".saturating_add(1), 101);
-assert_eq!((", stringify!($SelfT), "::MAX).saturating_add(127), ", stringify!($SelfT),
-"::MAX);", $EndFeature, "
+assert_eq!(", stringify!($SelfT), "::MAX.saturating_add(127), ", stringify!($SelfT), "::MAX);",
+$EndFeature, "
 ```"),
 
             #[stable(feature = "rust1", since = "1.0.0")]