about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorRobert Bastian <4706271+robertbastian@users.noreply.github.com>2025-02-24 10:02:55 +0100
committerGitHub <noreply@github.com>2025-02-24 10:02:55 +0100
commit562880cfd96b4bf856ad4af1c3803fb75dc7bba9 (patch)
tree56ae98ca1dad8dc3fd6f6aee0b6e49a7d356af7b /library/alloc/src
parent65a5d8bf6c5caf5b7084cdc70ce184f3d505638d (diff)
downloadrust-562880cfd96b4bf856ad4af1c3803fb75dc7bba9.tar.gz
rust-562880cfd96b4bf856ad4af1c3803fb75dc7bba9.zip
Update string.rs
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index a222ce040a4..7fe823a3464 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -966,8 +966,8 @@ impl String {
     /// This is highly unsafe, due to the number of invariants that aren't
     /// checked:
     ///
-    /// * all safety requirements for [`Vec::<u8>::from_raw_parts`]
-    /// * all safety requirements for [`String::from_utf8_unchecked`]
+    /// * all safety requirements for [`Vec::<u8>::from_raw_parts`].
+    /// * all safety requirements for [`String::from_utf8_unchecked`].
     ///
     /// Violating these may cause problems like corrupting the allocator's
     /// internal data structures. For example, it is normally **not** safe to