about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Kraai <kraai@ftbfs.org>2019-12-06 10:05:41 -0800
committerMatthew Kraai <kraai@ftbfs.org>2019-12-08 08:21:27 -0500
commitb2392fddab7b153b6c7083371a80f36bb3005cd7 (patch)
treeb8f9bfeabdeaaa038a4be805274d56824dc9de12
parent852be72c433a02f0c3cb28f6703c2b08f2067831 (diff)
downloadrust-b2392fddab7b153b6c7083371a80f36bb3005cd7.tar.gz
rust-b2392fddab7b153b6c7083371a80f36bb3005cd7.zip
Add "this" to `GlobalAlloc::alloc`'s docs
-rw-r--r--src/libcore/alloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs
index f88415e16e3..9ec7e1d9136 100644
--- a/src/libcore/alloc.rs
+++ b/src/libcore/alloc.rs
@@ -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