diff options
| author | LemonJ <1632798336@qq.com> | 2025-03-10 16:46:18 +0800 |
|---|---|---|
| committer | LemonJ <1632798336@qq.com> | 2025-03-10 16:46:18 +0800 |
| commit | fa183ad8275db2523eac80ce2b2a2acb961064ee (patch) | |
| tree | 2e9753d4b03db9ecb24ad3e09d0f411eec880a60 /library/alloc/src/sync.rs | |
| parent | 55c658b242ca6bbd49eb33c01410b7fed7db4d6e (diff) | |
| download | rust-fa183ad8275db2523eac80ce2b2a2acb961064ee.tar.gz rust-fa183ad8275db2523eac80ce2b2a2acb961064ee.zip | |
fix copy typo
Diffstat (limited to 'library/alloc/src/sync.rs')
| -rw-r--r-- | library/alloc/src/sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 6bb037c57de..104cb35c23b 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1816,7 +1816,7 @@ impl<T: ?Sized, A: Allocator> Arc<T, A> { /// same layout requirements specified in [`Arc::from_raw_in`][from_raw_in]. /// The associated `Arc` instance must be valid (i.e. the strong count must be at /// least 1) for the duration of this method, and `ptr` must point to a block of memory - /// allocated by the global allocator. + /// allocated by `alloc`. /// /// [from_raw_in]: Arc::from_raw_in /// @@ -1863,7 +1863,7 @@ impl<T: ?Sized, A: Allocator> Arc<T, A> { /// same layout requirements specified in [`Arc::from_raw_in`][from_raw_in]. /// The associated `Arc` instance must be valid (i.e. the strong count must be at /// least 1) when invoking this method, and `ptr` must point to a block of memory - /// allocated by the global allocator. This method can be used to release the final + /// allocated by `alloc`. This method can be used to release the final /// `Arc` and backing storage, but **should not** be called after the final `Arc` has been /// released. /// |
