diff options
| author | Robert Bastian <4706271+robertbastian@users.noreply.github.com> | 2025-02-24 10:02:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-24 10:02:55 +0100 |
| commit | 562880cfd96b4bf856ad4af1c3803fb75dc7bba9 (patch) | |
| tree | 56ae98ca1dad8dc3fd6f6aee0b6e49a7d356af7b /library/alloc/src | |
| parent | 65a5d8bf6c5caf5b7084cdc70ce184f3d505638d (diff) | |
| download | rust-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.rs | 4 |
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 |
