mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Fix spelling in SAFETY comment
"can not" should be "cannot", and add punctuation.
This commit is contained in:
@@ -213,7 +213,7 @@ impl $Ty {
|
||||
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 @@ pub const fn leading_zeros(self) -> u32 {
|
||||
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 }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user