about summary refs log tree commit diff
path: root/library/std/src/alloc.rs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-06-26 16:31:29 +0200
committerGitHub <noreply@github.com>2022-06-26 16:31:29 +0200
commit756118e2b99e355ab9916a97efc45989d333fd1d (patch)
treeb8bc7e63faf97909911e7148c1b03d9fdcb3adf8 /library/std/src/alloc.rs
parent0e1a6fb463e7075572cee841525bf44a864da807 (diff)
downloadrust-756118e2b99e355ab9916a97efc45989d333fd1d.tar.gz
rust-756118e2b99e355ab9916a97efc45989d333fd1d.zip
Update `std::alloc::System` docs
Diffstat (limited to 'library/std/src/alloc.rs')
-rw-r--r--library/std/src/alloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs
index d554ec59035..a05e0db3af7 100644
--- a/library/std/src/alloc.rs
+++ b/library/std/src/alloc.rs
@@ -102,7 +102,7 @@ pub use alloc_crate::alloc::*;
 ///         if !ret.is_null() {
 ///             ALLOCATED.fetch_add(layout.size(), SeqCst);
 ///         }
-///         return ret
+///         ret
 ///     }
 ///
 ///     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {