summaryrefslogtreecommitdiffstats
path: root/vendor/crypto-bigint/src/limb/shl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/crypto-bigint/src/limb/shl.rs')
-rw-r--r--vendor/crypto-bigint/src/limb/shl.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/crypto-bigint/src/limb/shl.rs b/vendor/crypto-bigint/src/limb/shl.rs
index c0003ddbb..88e37f01e 100644
--- a/vendor/crypto-bigint/src/limb/shl.rs
+++ b/vendor/crypto-bigint/src/limb/shl.rs
@@ -5,6 +5,7 @@ use core::ops::{Shl, ShlAssign};
impl Limb {
/// Computes `self << rhs`.
+ /// Panics if `rhs` overflows `Limb::BITS`.
#[inline(always)]
pub const fn shl(self, rhs: Self) -> Self {
Limb(self.0 << rhs.0)