From 215cf36d64075f2cd0c1c85401ddc3b0ad6f3353 Mon Sep 17 00:00:00 2001 From: Cyborus04 <87248184+Cyborus04@users.noreply.github.com> Date: Fri, 30 Jun 2023 11:39:34 -0400 Subject: [PATCH] Add support for allocators in `Rc` and `Arc` --- library/alloc/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 7fcac60b129..e00850eb5d8 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1493,7 +1493,7 @@ pub fn as_ptr(this: &Self) -> *const T { /// basically like transmuting references of different types. See /// [`mem::transmute`][transmute] for more information on what /// restrictions apply in this case. - /// + /// /// The raw pointer must point to a block of memory allocated by `alloc` /// /// The user of `from_raw` has to make sure a specific value of `T` is only