diff --git a/src/slice.rs b/src/slice.rs index 01104396..493d8632 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -1466,7 +1466,7 @@ where let len = self.len(); assert!( by < len, - "cannot shift a bit-slice by more than its length: {} > {}", + "shift must be less than the length of the bit-slice: {} >= {}", by, len, ); @@ -1508,7 +1508,7 @@ where let len = self.len(); assert!( by < len, - "cannot shift a bit-slice by more than its length: {} > {}", + "shift must be less than the length of the bit-slice: {} >= {}", by, len, );