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`
This commit is contained in:
commit
fb6ced426e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue