]> git.lizzy.rs Git - rust.git/commitdiff
Add "this" to `GlobalAlloc::alloc`'s docs
authorMatthew Kraai <kraai@ftbfs.org>
Fri, 6 Dec 2019 18:05:41 +0000 (10:05 -0800)
committerMatthew Kraai <kraai@ftbfs.org>
Sun, 8 Dec 2019 13:21:27 +0000 (08:21 -0500)
src/libcore/alloc.rs

index f88415e16e33c20b7d6cd337aaa5781bdc22be11..9ec7e1d9136450f99dd015551f3eac9e6569a911 100644 (file)
@@ -459,7 +459,7 @@ pub unsafe trait GlobalAlloc {
     /// # Errors
     ///
     /// Returning a null pointer indicates that either memory is exhausted
-    /// or `layout` does not meet allocator's size or alignment constraints.
+    /// or `layout` does not meet this allocator's size or alignment constraints.
     ///
     /// Implementations are encouraged to return null on memory
     /// exhaustion rather than aborting, but this is not