about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-05-23 18:13:02 +0200
committerRalf Jung <post@ralfj.de>2019-05-23 18:13:08 +0200
commit8d4e7fde479e018d3caf37d1d12f47710183252e (patch)
tree62b6d776ea070d864c678345e5cd9dd5bf8812f7 /src/liballoc
parent6116f19f7baa3c1f7ed4659aa3b9b5ec5ff8ac3e (diff)
downloadrust-8d4e7fde479e018d3caf37d1d12f47710183252e.tar.gz
rust-8d4e7fde479e018d3caf37d1d12f47710183252e.zip
adjust comment
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 0e40e4f371a..97c2d8e7a8e 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -260,7 +260,8 @@ impl<T: ?Sized> Box<T> {
         // Stacked Borrows.  This function here corresponds to "reborrowing to
         // a raw pointer", but there is no actual reborrow here -- so
         // without some care, the pointer we are returning here still carries
-        // the `Uniq` tag.  We round-trip through a mutable reference to avoid that.
+        // the tag of `b`, with `Unique` permission.
+        // We round-trip through a mutable reference to avoid that.
         unsafe { Unique::new_unchecked(unique.as_mut() as *mut T) }
     }