summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2017-05-10 17:05:54 +0200
committerRalf Jung <post@ralfj.de>2017-05-10 17:08:58 +0200
commitec141c8c96c81decd8fd7227c40285bc9b994a16 (patch)
tree4b4bafe345efc74dc3fdf94ea14196856a0f5346 /src/libcore
parent25a161765fb90f2bfc78bda8fef944048e72bd26 (diff)
downloadrust-ec141c8c96c81decd8fd7227c40285bc9b994a16.tar.gz
rust-ec141c8c96c81decd8fd7227c40285bc9b994a16.zip
fix typo in Unique::empty doc
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index a60abefc076..5f189d473be 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -1005,7 +1005,7 @@ unsafe impl<T: Sync + ?Sized> Sync for Unique<T> { }
 
 #[unstable(feature = "unique", issue = "27730")]
 impl<T: Sized> Unique<T> {
-    /// Creates a new `Shared` that is dangling, but well-aligned.
+    /// Creates a new `Unique` that is dangling, but well-aligned.
     ///
     /// This is useful for initializing types which lazily allocate, like
     /// `Vec::new` does.