]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in documentation of i32 wrapping_abs()
authorJR Heard <jrheard@cs.stanford.edu>
Sun, 23 Aug 2020 05:21:03 +0000 (22:21 -0700)
committerGitHub <noreply@github.com>
Sun, 23 Aug 2020 05:21:03 +0000 (22:21 -0700)
library/core/src/num/mod.rs

index 68937176270356a031ac23cf1fed6053f5edff5a..7a88cfbb74dd45472486d181c20fd3d5cb94ca4b 100644 (file)
@@ -1573,7 +1573,7 @@ pub const fn wrapping_shr(self, rhs: u32) -> Self {
 the boundary of the type.
 
 The only case where such wrapping can occur is when one takes the absolute value of the negative
 the boundary of the type.
 
 The only case where such wrapping can occur is when one takes the absolute value of the negative
-minimal value for the type this is a positive value that is too large to represent in the type. In
+minimal value for the type; this is a positive value that is too large to represent in the type. In
 such a case, this function returns `MIN` itself.
 
 # Examples
 such a case, this function returns `MIN` itself.
 
 # Examples