Skip to content

Commit 562880c

Browse files
Update string.rs
Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent 65a5d8b commit 562880c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ impl String {
966966
/// This is highly unsafe, due to the number of invariants that aren't
967967
/// checked:
968968
///
969-
/// * all safety requirements for [`Vec::<u8>::from_raw_parts`]
970-
/// * all safety requirements for [`String::from_utf8_unchecked`]
969+
/// * all safety requirements for [`Vec::<u8>::from_raw_parts`].
970+
/// * all safety requirements for [`String::from_utf8_unchecked`].
971971
///
972972
/// Violating these may cause problems like corrupting the allocator's
973973
/// internal data structures. For example, it is normally **not** safe to

0 commit comments

Comments
 (0)