Skip to content

Commit

Permalink
Update string.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Amanieu d'Antras <[email protected]>
  • Loading branch information
robertbastian and Amanieu authored Feb 24, 2025
1 parent 65a5d8b commit 562880c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 562880c

Please sign in to comment.