Skip to content

Commit 8d4e7fd

Browse files
committed
adjust comment
1 parent 6116f19 commit 8d4e7fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/liballoc/boxed.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ impl<T: ?Sized> Box<T> {
260260
// Stacked Borrows. This function here corresponds to "reborrowing to
261261
// a raw pointer", but there is no actual reborrow here -- so
262262
// without some care, the pointer we are returning here still carries
263-
// the `Uniq` tag. We round-trip through a mutable reference to avoid that.
263+
// the tag of `b`, with `Unique` permission.
264+
// We round-trip through a mutable reference to avoid that.
264265
unsafe { Unique::new_unchecked(unique.as_mut() as *mut T) }
265266
}
266267

0 commit comments

Comments
 (0)