diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2022-06-26 19:17:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-26 19:17:34 -0700 |
| commit | 1c1ae78db7ae7ca162e60041816f9dd4bc0a2fc2 (patch) | |
| tree | f89d92883abbb486a06a8e9eae82b6ff9c264560 | |
| parent | 3b0d4813ab461ec81eab8980bb884691c97c5a35 (diff) | |
| download | rust-1c1ae78db7ae7ca162e60041816f9dd4bc0a2fc2.tar.gz rust-1c1ae78db7ae7ca162e60041816f9dd4bc0a2fc2.zip | |
Fix spelling in SAFETY comment
"can not" should be "cannot", and add punctuation.
| -rw-r--r-- | library/core/src/num/nonzero.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index e570d831cc6..92d03b724b4 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -213,7 +213,7 @@ macro_rules! nonzero_leading_trailing_zeros { without modifying the original"] #[inline] pub const fn leading_zeros(self) -> u32 { - // SAFETY: since `self` can not be zero it is safe to call ctlz_nonzero + // SAFETY: since `self` cannot be zero, it is safe to call `ctlz_nonzero`. unsafe { intrinsics::ctlz_nonzero(self.0 as $Uint) as u32 } } @@ -237,7 +237,7 @@ macro_rules! nonzero_leading_trailing_zeros { without modifying the original"] #[inline] pub const fn trailing_zeros(self) -> u32 { - // SAFETY: since `self` can not be zero it is safe to call cttz_nonzero + // SAFETY: since `self` cannot be zero, it is safe to call `cttz_nonzero`. unsafe { intrinsics::cttz_nonzero(self.0 as $Uint) as u32 } } |
