specify explicit safety guidance for from_utf8_unchecked
This commit is contained in:
parent
496145b9cc
commit
0795b2d646
2 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
|
|||
/// Converts a slice of bytes to a string slice without checking
|
||||
/// that the string contains valid UTF-8; mutable version.
|
||||
///
|
||||
/// See the immutable version, [`from_utf8_unchecked()`] for more information.
|
||||
/// See the immutable version, [`from_utf8_unchecked()`] for documentation and safety requirements.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ impl str {
|
|||
/// Converts a slice of bytes to a string slice without checking
|
||||
/// that the string contains valid UTF-8; mutable version.
|
||||
///
|
||||
/// See the immutable version, [`from_utf8_unchecked()`] for more information.
|
||||
/// See the immutable version, [`from_utf8_unchecked()`] for documentation and safety requirements.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue