Skip to content

Commit 4ac94b4

Browse files
bors[bot]vicsn
andauthored
Merge #270
270: Make CheckedSh{l,r} documentation more consistent r=cuviper a=vicsn Co-authored-by: Victor Sint Nicolaas <vicsn@users.noreply.github.com>
2 parents 8ba2458 + 789b6b5 commit 4ac94b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ops/checked.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ checked_impl_unary!(CheckedNeg, checked_neg, isize);
184184
checked_impl_unary!(CheckedNeg, checked_neg, i128);
185185

186186
/// Performs a left shift that returns `None` on shifts larger than
187-
/// the type width.
187+
/// or equal to the type width.
188188
pub trait CheckedShl: Sized + Shl<u32, Output = Self> {
189189
/// Checked shift left. Computes `self << rhs`, returning `None`
190190
/// if `rhs` is larger than or equal to the number of bits in `self`.
@@ -228,7 +228,7 @@ checked_shift_impl!(CheckedShl, checked_shl, isize);
228228
checked_shift_impl!(CheckedShl, checked_shl, i128);
229229

230230
/// Performs a right shift that returns `None` on shifts larger than
231-
/// the type width.
231+
/// or equal to the type width.
232232
pub trait CheckedShr: Sized + Shr<u32, Output = Self> {
233233
/// Checked shift right. Computes `self >> rhs`, returning `None`
234234
/// if `rhs` is larger than or equal to the number of bits in `self`.

0 commit comments

Comments
 (0)