Skip to content

Commit

Permalink
Issue #39688 - Help people find String::as_bytes() for UTF-8 r? @stev…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhorwitz committed Mar 6, 2017
1 parent 6b76c9e commit 86bad49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libcollections/string.rs
Expand Up @@ -433,6 +433,10 @@ impl String {
///
/// [`str::from_utf8()`]: ../../std/str/fn.from_utf8.html
///
/// The inverse of this method is [`as_bytes`].
///
/// [`as_bytes`]: #method.as_bytes
///
/// # Errors
///
/// Returns `Err` if the slice is not UTF-8 with a description as to why the
Expand Down Expand Up @@ -979,6 +983,10 @@ impl String {

/// Returns a byte slice of this `String`'s contents.
///
/// The inverse of this method is [`from_utf8`].
///
/// [`from_utf8`]: #method.from_utf8
///
/// # Examples
///
/// Basic usage:
Expand Down

0 comments on commit 86bad49

Please sign in to comment.