@@ -347,7 +347,7 @@ impl String {
347
347
String { vec : bytes }
348
348
}
349
349
350
- /// Return the underlying byte buffer, encoded as UTF-8.
350
+ /// Returns the underlying byte buffer, encoded as UTF-8.
351
351
///
352
352
/// # Examples
353
353
///
@@ -363,7 +363,7 @@ impl String {
363
363
self . vec
364
364
}
365
365
366
- /// Extract a string slice containing the entire string.
366
+ /// Extracts a string slice containing the entire string.
367
367
#[ inline]
368
368
#[ unstable( feature = "convert" ,
369
369
reason = "waiting on RFC revision" ) ]
@@ -607,7 +607,7 @@ impl String {
607
607
ch
608
608
}
609
609
610
- /// Insert a character into the string buffer at byte position `idx`.
610
+ /// Inserts a character into the string buffer at byte position `idx`.
611
611
///
612
612
/// # Warning
613
613
///
@@ -662,7 +662,7 @@ impl String {
662
662
& mut self . vec
663
663
}
664
664
665
- /// Return the number of bytes in this string.
665
+ /// Returns the number of bytes in this string.
666
666
///
667
667
/// # Examples
668
668
///
@@ -705,12 +705,12 @@ impl String {
705
705
}
706
706
707
707
impl FromUtf8Error {
708
- /// Consume this error, returning the bytes that were attempted to make a
708
+ /// Consumes this error, returning the bytes that were attempted to make a
709
709
/// `String` with.
710
710
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
711
711
pub fn into_bytes ( self ) -> Vec < u8 > { self . bytes }
712
712
713
- /// Access the underlying UTF8-error that was the cause of this error.
713
+ /// Accesss the underlying UTF8-error that was the cause of this error.
714
714
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
715
715
pub fn utf8_error ( & self ) -> Utf8Error { self . error }
716
716
}
@@ -959,7 +959,7 @@ impl<'a> Deref for DerefString<'a> {
959
959
}
960
960
}
961
961
962
- /// Convert a string slice to a wrapper type providing a `&String` reference.
962
+ /// Converts a string slice to a wrapper type providing a `&String` reference.
963
963
///
964
964
/// # Examples
965
965
///
0 commit comments