Skip to content

Commit 9960acb

Browse files
author
Alexander Regueiro
committed
libs: debug msgs
1 parent 8f8f08b commit 9960acb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ impl<T, A: Alloc> RawVec<T, A> {
574574
}
575575

576576
// This check is my waterloo; it's the only thing `Vec` wouldn't have to do.
577-
assert!(self.cap >= amount, "Tried to shrink to a larger capacity");
577+
assert!(self.cap >= amount, "tried to shrink to a larger capacity");
578578

579579
if amount == 0 {
580580
// We want to create a new zero-length vector within the

src/libcore/num/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1224,9 +1224,9 @@ $EndFeature, "
12241224
concat!("Panic-free bitwise shift-left; yields `self << mask(rhs)`, where `mask` removes
12251225
any high-order bits of `rhs` that would cause the shift to exceed the bitwidth of the type.
12261226
1227-
Note that this is **not** the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
1228-
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
1229-
The primitive integer types all implement a `rotate_left` function, which may be what you want
1227+
Note that this is **not** the same as a rotate-left; the RHS of a wrapping shift-left is restricted
1228+
to the range of the type, rather than the bits shifted out of the LHS being returned to the other
1229+
end. The primitive integer types all implement a `rotate_left` function, which may be what you want
12301230
instead.
12311231
12321232
# Examples
@@ -1251,10 +1251,10 @@ $EndFeature, "
12511251
concat!("Panic-free bitwise shift-right; yields `self >> mask(rhs)`, where `mask`
12521252
removes any high-order bits of `rhs` that would cause the shift to exceed the bitwidth of the type.
12531253
1254-
Note that this is **not** the same as a rotate-right; the RHS of a wrapping shift-right is restricted
1255-
to the range of the type, rather than the bits shifted out of the LHS being returned to the other
1256-
end. The primitive integer types all implement a `rotate_right` function, which may be what you want
1257-
instead.
1254+
Note that this is **not** the same as a rotate-right; the RHS of a wrapping shift-right is
1255+
restricted to the range of the type, rather than the bits shifted out of the LHS being returned to
1256+
the other end. The primitive integer types all implement a `rotate_right` function, which may be
1257+
what you want instead.
12581258
12591259
# Examples
12601260

0 commit comments

Comments
 (0)