]> git.lizzy.rs Git - rust.git/commitdiff
Change "`alloc`/`realloc`" to "`realloc/dealloc`"
authorMatthew Kraai <kraai@ftbfs.org>
Sun, 8 Dec 2019 03:59:14 +0000 (22:59 -0500)
committerMatthew Kraai <kraai@ftbfs.org>
Sun, 8 Dec 2019 13:21:27 +0000 (08:21 -0500)
src/libcore/alloc.rs

index 9ec7e1d9136450f99dd015551f3eac9e6569a911..c8a3a2d9fe5a18205dfdd2278c1bbfa9142d26c0 100644 (file)
@@ -1046,7 +1046,7 @@ unsafe fn shrink_in_place(&mut self,
     /// Captures a common usage pattern for allocators.
     ///
     /// The returned block is suitable for passing to the
-    /// `alloc`/`realloc` methods of this allocator.
+    /// `realloc`/`dealloc` methods of this allocator.
     ///
     /// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
     /// must be considered "currently allocated" and must be
@@ -1112,7 +1112,7 @@ unsafe fn dealloc_one<T>(&mut self, ptr: NonNull<T>)
     /// Captures a common usage pattern for allocators.
     ///
     /// The returned block is suitable for passing to the
-    /// `alloc`/`realloc` methods of this allocator.
+    /// `realloc`/`dealloc` methods of this allocator.
     ///
     /// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
     /// must be considered "currently allocated" and must be
@@ -1159,7 +1159,7 @@ fn alloc_array<T>(&mut self, n: usize) -> Result<NonNull<T>, AllocErr>
     /// Captures a common usage pattern for allocators.
     ///
     /// The returned block is suitable for passing to the
-    /// `alloc`/`realloc` methods of this allocator.
+    /// `realloc`/`dealloc` methods of this allocator.
     ///
     /// # Safety
     ///