Skip to content

Commit fa183ad

Browse files
committed
fix copy typo
1 parent 55c658b commit fa183ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ impl<T: ?Sized> Rc<T> {
13311331
/// same layout requirements specified in [`Rc::from_raw_in`][from_raw_in].
13321332
/// The associated `Rc` instance must be valid (i.e. the strong count must be at
13331333
/// least 1) for the duration of this method, and `ptr` must point to a block of memory
1334-
/// allocated by `alloc`.
1334+
/// allocated by the global allocator.
13351335
///
13361336
/// [from_raw_in]: Rc::from_raw_in
13371337
///
@@ -1678,7 +1678,7 @@ impl<T: ?Sized, A: Allocator> Rc<T, A> {
16781678
/// same layout requirements specified in [`Rc::from_raw_in`][from_raw_in].
16791679
/// The associated `Rc` instance must be valid (i.e. the strong count must be at
16801680
/// least 1) when invoking this method, and `ptr` must point to a block of memory
1681-
/// allocated by the global allocator. This method can be used to release the final `Rc` and
1681+
/// allocated by `alloc`. This method can be used to release the final `Rc` and
16821682
/// backing storage, but **should not** be called after the final `Rc` has been released.
16831683
///
16841684
/// [from_raw_in]: Rc::from_raw_in

library/alloc/src/sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ impl<T: ?Sized, A: Allocator> Arc<T, A> {
18161816
/// same layout requirements specified in [`Arc::from_raw_in`][from_raw_in].
18171817
/// The associated `Arc` instance must be valid (i.e. the strong count must be at
18181818
/// least 1) for the duration of this method, and `ptr` must point to a block of memory
1819-
/// allocated by the global allocator.
1819+
/// allocated by `alloc`.
18201820
///
18211821
/// [from_raw_in]: Arc::from_raw_in
18221822
///
@@ -1863,7 +1863,7 @@ impl<T: ?Sized, A: Allocator> Arc<T, A> {
18631863
/// same layout requirements specified in [`Arc::from_raw_in`][from_raw_in].
18641864
/// The associated `Arc` instance must be valid (i.e. the strong count must be at
18651865
/// least 1) when invoking this method, and `ptr` must point to a block of memory
1866-
/// allocated by the global allocator. This method can be used to release the final
1866+
/// allocated by `alloc`. This method can be used to release the final
18671867
/// `Arc` and backing storage, but **should not** be called after the final `Arc` has been
18681868
/// released.
18691869
///

0 commit comments

Comments
 (0)