Skip to content

Commit 0c615a1

Browse files
authored
Rollup merge of #148775 - reddevilmidzy:fix-typo, r=joboet
Fix a typo in the documentation for the strict_shr function fix: #148761
2 parents 24e0724 + 3d44aca commit 0c615a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/num/int_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ macro_rules! int_impl {
15031503
}
15041504
}
15051505

1506-
/// Strict shift right. Computes `self >> rhs`, panicking `rhs` is
1506+
/// Strict shift right. Computes `self >> rhs`, panicking if `rhs` is
15071507
/// larger than or equal to the number of bits in `self`.
15081508
///
15091509
/// # Panics

library/core/src/num/uint_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ macro_rules! uint_impl {
19001900
}
19011901
}
19021902

1903-
/// Strict shift right. Computes `self >> rhs`, panicking `rhs` is
1903+
/// Strict shift right. Computes `self >> rhs`, panicking if `rhs` is
19041904
/// larger than or equal to the number of bits in `self`.
19051905
///
19061906
/// # Panics

0 commit comments

Comments
 (0)