Skip to content

Commit

Permalink
Fix wording in shift functions doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Apr 23, 2024
1 parent af9fc5d commit a79b1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shims/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ enum ShiftOp {
///
/// For logic shifts, when right is larger than BITS - 1, zero is produced.
/// For arithmetic right-shifts, when right is larger than BITS - 1, the sign
/// bit is copied to remaining bits.
/// bit is copied to all bits.
fn shift_simd_by_scalar<'tcx>(
this: &mut crate::MiriInterpCx<'_, 'tcx>,
left: &OpTy<'tcx, Provenance>,
Expand Down Expand Up @@ -544,7 +544,7 @@ fn shift_simd_by_scalar<'tcx>(
///
/// For logic shifts, when right is larger than BITS - 1, zero is produced.
/// For arithmetic right-shifts, when right is larger than BITS - 1, the sign
/// bit is copied to remaining bits.
/// bit is copied to all bits.
fn shift_simd_by_simd<'tcx>(
this: &mut crate::MiriInterpCx<'_, 'tcx>,
left: &OpTy<'tcx, Provenance>,
Expand Down

0 comments on commit a79b1f1

Please sign in to comment.