about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorClearLove <98693523+DiuDiu777@users.noreply.github.com>2025-01-16 15:16:43 +0800
committerGitHub <noreply@github.com>2025-01-16 15:16:43 +0800
commit48e671ec88386f29ab2e3840a6fde3645abbc085 (patch)
treea0167ee63314380743a811d9c12aa5d18c936efb /library/alloc/src
parent878a79691caa5b02bb8a91f10866903a4af8b523 (diff)
downloadrust-48e671ec88386f29ab2e3840a6fde3645abbc085.tar.gz
rust-48e671ec88386f29ab2e3840a6fde3645abbc085.zip
fix typo in library/alloc/src/sync.rs
Co-authored-by: Ibraheem Ahmed <ibraheem@ibraheem.ca>
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index dd899c8a71d..f7201a5ec2f 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -1376,7 +1376,7 @@ impl<T: ?Sized> Arc<T> {
     /// 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 the global allocator
+    /// The raw pointer must point to a block of memory allocated by the global allocator.
     ///
     /// The user of `from_raw` has to make sure a specific value of `T` is only
     /// dropped once.