]> git.lizzy.rs Git - rust.git/commitdiff
fix typo in Unique::empty doc
authorRalf Jung <post@ralfj.de>
Wed, 10 May 2017 15:05:54 +0000 (17:05 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 10 May 2017 15:08:58 +0000 (17:08 +0200)
src/libcore/ptr.rs

index a60abefc076504027bdc99141b9add789bda7060..5f189d473be79f95c56ed2a9cc657ced02559d05 100644 (file)
@@ -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.