Skip to content

Commit

Permalink
Merge #270
Browse files Browse the repository at this point in the history
270: Make CheckedSh{l,r} documentation more consistent r=cuviper a=vicsn



Co-authored-by: Victor Sint Nicolaas <vicsn@users.noreply.github.com>
  • Loading branch information
bors[bot] and vicsn committed May 22, 2023
2 parents 8ba2458 + 789b6b5 commit 4ac94b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ops/checked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ checked_impl_unary!(CheckedNeg, checked_neg, isize);
checked_impl_unary!(CheckedNeg, checked_neg, i128);

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

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

0 comments on commit 4ac94b4

Please sign in to comment.