Skip to content

Commit a79b1f1

Browse files
committed
Fix wording in shift functions doc comments
1 parent af9fc5d commit a79b1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/x86/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ enum ShiftOp {
488488
///
489489
/// For logic shifts, when right is larger than BITS - 1, zero is produced.
490490
/// For arithmetic right-shifts, when right is larger than BITS - 1, the sign
491-
/// bit is copied to remaining bits.
491+
/// bit is copied to all bits.
492492
fn shift_simd_by_scalar<'tcx>(
493493
this: &mut crate::MiriInterpCx<'_, 'tcx>,
494494
left: &OpTy<'tcx, Provenance>,
@@ -544,7 +544,7 @@ fn shift_simd_by_scalar<'tcx>(
544544
///
545545
/// For logic shifts, when right is larger than BITS - 1, zero is produced.
546546
/// For arithmetic right-shifts, when right is larger than BITS - 1, the sign
547-
/// bit is copied to remaining bits.
547+
/// bit is copied to all bits.
548548
fn shift_simd_by_simd<'tcx>(
549549
this: &mut crate::MiriInterpCx<'_, 'tcx>,
550550
left: &OpTy<'tcx, Provenance>,

0 commit comments

Comments
 (0)