Skip to content

Commit

Permalink
Rollup merge of rust-lang#40907 - donniebishop:utf8_unchecked_docs, r…
Browse files Browse the repository at this point in the history
…=steveklabnik

Linked str in from_utf_unchecked

References rust-lang#29375. Linked `str` in from_utf_unchecked's documentation to the docs for primitive `str`
  • Loading branch information
frewsxcv authored Mar 29, 2017
2 parents be76eb4 + 19b98f3 commit fb6ced4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ unsafe fn from_raw_parts_mut<'a>(p: *mut u8, len: usize) -> &'a mut str {
///
/// This function is unsafe because it does not check that the bytes passed to
/// it are valid UTF-8. If this constraint is violated, undefined behavior
/// results, as the rest of Rust assumes that `&str`s are valid UTF-8.
/// results, as the rest of Rust assumes that [`&str`]s are valid UTF-8.
///
/// [`&str`]: ../../std/primitive.str.html
///
/// # Examples
///
Expand Down

0 comments on commit fb6ced4

Please sign in to comment.