Trivial typo fix: from_utrf8 should be from_utf8
This commit is contained in:
parent
9d3e79ad37
commit
dce58baff0
2 changed files with 2 additions and 2 deletions
|
@ -381,7 +381,7 @@ impl String {
|
||||||
/// Converts a vector of bytes to a `String` without checking that the
|
/// Converts a vector of bytes to a `String` without checking that the
|
||||||
/// string contains valid UTF-8.
|
/// string contains valid UTF-8.
|
||||||
///
|
///
|
||||||
/// See the safe version, [`from_utrf8()`][fromutf8], for more.
|
/// See the safe version, [`from_utf8()`][fromutf8], for more.
|
||||||
///
|
///
|
||||||
/// [fromutf8]: struct.String.html#method.from_utf8
|
/// [fromutf8]: struct.String.html#method.from_utf8
|
||||||
///
|
///
|
||||||
|
|
|
@ -243,7 +243,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
|
||||||
/// Converts a slice of bytes to a string slice without checking
|
/// Converts a slice of bytes to a string slice without checking
|
||||||
/// that the string contains valid UTF-8.
|
/// that the string contains valid UTF-8.
|
||||||
///
|
///
|
||||||
/// See the safe version, [`from_utrf8()`][fromutf8], for more.
|
/// See the safe version, [`from_utf8()`][fromutf8], for more.
|
||||||
///
|
///
|
||||||
/// [fromutf8]: fn.from_utf8.html
|
/// [fromutf8]: fn.from_utf8.html
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue