Skip to content

Commit e4bb43d

Browse files
robertbastianAmanieu
authored and
gitbot
committed
Update string.rs
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
1 parent 0bbb878 commit e4bb43d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)