Skip to content

Commit c2c2055

Browse files
Revise mention of using the global allocator
Allow for the possibility that the global allocator is the system allocator. Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
1 parent 770961c commit c2c2055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/alloc/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ use crate::{cmp, ptr};
125125
///
126126
/// Generally speaking for this reason one should stick to library features available through
127127
/// [`core`], and avoid using [`std`] in a global allocator. A few features from [`std`] are
128-
/// guaranteed to not use the global allocator:
128+
/// guaranteed to not use `#[global_allocator]` to allocate:
129129
///
130130
/// - [`std::thread_local`],
131131
/// - [`std::thread::current`],

0 commit comments

Comments
 (0)