We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b76c9e commit 86bad49Copy full SHA for 86bad49
src/libcollections/string.rs
@@ -433,6 +433,10 @@ impl String {
433
///
434
/// [`str::from_utf8()`]: ../../std/str/fn.from_utf8.html
435
436
+ /// The inverse of this method is [`as_bytes`].
437
+ ///
438
+ /// [`as_bytes`]: #method.as_bytes
439
440
/// # Errors
441
442
/// Returns `Err` if the slice is not UTF-8 with a description as to why the
@@ -979,6 +983,10 @@ impl String {
979
983
980
984
/// Returns a byte slice of this `String`'s contents.
981
985
986
+ /// The inverse of this method is [`from_utf8`].
987
988
+ /// [`from_utf8`]: #method.from_utf8
989
982
990
/// # Examples
991
992
/// Basic usage:
0 commit comments