diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2024-04-23 19:23:15 +0200 |
|---|---|---|
| committer | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2024-04-23 19:23:15 +0200 |
| commit | 4dbc4f87e6d6ba7e1d71266ebc66a0fb0f3f7550 (patch) | |
| tree | 339c171c8d1c41e0df0f9be3c39e4ed2103d7519 | |
| parent | ed15716fe61e181b7c605c00e44ca208e2446db7 (diff) | |
| download | rust-4dbc4f87e6d6ba7e1d71266ebc66a0fb0f3f7550.tar.gz rust-4dbc4f87e6d6ba7e1d71266ebc66a0fb0f3f7550.zip | |
Fix wording in shift functions doc comments
| -rw-r--r-- | src/tools/miri/src/shims/x86/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/shims/x86/mod.rs b/src/tools/miri/src/shims/x86/mod.rs index cf3c3758cd1..cd4e1c2e000 100644 --- a/src/tools/miri/src/shims/x86/mod.rs +++ b/src/tools/miri/src/shims/x86/mod.rs @@ -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>, @@ -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>, |
