diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs index 06bc8a589e1fc..1bb17abbe661e 100644 --- a/library/alloc/src/alloc.rs +++ b/library/alloc/src/alloc.rs @@ -119,8 +119,7 @@ unsafe impl core::alloc::StaticAllocator for Global {} /// /// Users of this function have to consider that in the future, allocators may be allowed to unwind. /// -/// This function is expected to be deprecated in favor of the `allocate` method -/// of the [`Global`] type when it and the [`Allocator`] trait become stable. +/// Calling [`Allocator::allocate`] on `Global` is preferred. /// /// # Safety ///