@@ -429,7 +429,7 @@ impl String {
429
429
430
430
/// Converts a vector of bytes to a `String`.
431
431
///
432
- /// A string slice ([`&str `]) is made of bytes ([`u8`]), and a vector of bytes
432
+ /// A string ([`String `]) is made of bytes ([`u8`]), and a vector of bytes
433
433
/// ([`Vec<u8>`]) is made of bytes, so this function converts between the
434
434
/// two. Not all byte slices are valid `String`s, however: `String`
435
435
/// requires that it is valid UTF-8. `from_utf8()` checks to ensure that
@@ -446,7 +446,7 @@ impl String {
446
446
/// If you need a [`&str`] instead of a `String`, consider
447
447
/// [`str::from_utf8`].
448
448
///
449
- /// The inverse of this method is [`as_bytes `].
449
+ /// The inverse of this method is [`into_bytes `].
450
450
///
451
451
/// # Errors
452
452
///
@@ -480,11 +480,11 @@ impl String {
480
480
/// with this error.
481
481
///
482
482
/// [`from_utf8_unchecked`]: struct.String.html#method.from_utf8_unchecked
483
- /// [`&str `]: ../../std/primitive.str .html
483
+ /// [`String `]: struct.String .html
484
484
/// [`u8`]: ../../std/primitive.u8.html
485
485
/// [`Vec<u8>`]: ../../std/vec/struct.Vec.html
486
486
/// [`str::from_utf8`]: ../../std/str/fn.from_utf8.html
487
- /// [`as_bytes `]: struct.String.html#method.as_bytes
487
+ /// [`into_bytes `]: struct.String.html#method.into_bytes
488
488
/// [`FromUtf8Error`]: struct.FromUtf8Error.html
489
489
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
490
490
#[ inline]
0 commit comments