Skip to content

Commit fb6ced4

Browse files
authoredMar 29, 2017
Rollup merge of #40907 - donniebishop:utf8_unchecked_docs, r=steveklabnik
Linked str in from_utf_unchecked References #29375. Linked `str` in from_utf_unchecked's documentation to the docs for primitive `str`
2 parents be76eb4 + 19b98f3 commit fb6ced4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/libcore/str/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ unsafe fn from_raw_parts_mut<'a>(p: *mut u8, len: usize) -> &'a mut str {
327327
///
328328
/// This function is unsafe because it does not check that the bytes passed to
329329
/// it are valid UTF-8. If this constraint is violated, undefined behavior
330-
/// results, as the rest of Rust assumes that `&str`s are valid UTF-8.
330+
/// results, as the rest of Rust assumes that [`&str`]s are valid UTF-8.
331+
///
332+
/// [`&str`]: ../../std/primitive.str.html
331333
///
332334
/// # Examples
333335
///

0 commit comments

Comments
 (0)