]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/string.rs
docs: Standardize on 'Errors' header in std docs
[rust.git] / src / libcollections / string.rs
index 97c12043e763475a96cb5a509adf771abef0b53d..b1242ba6d4df25a8e4135e218c2c9544a092e56c 100644 (file)
@@ -433,7 +433,7 @@ pub fn from_str(_: &str) -> String {
     ///
     /// [`str::from_utf8()`]: ../str/fn.from_utf8.html
     ///
-    /// # Failure
+    /// # Errors
     ///
     /// Returns `Err` if the slice is not UTF-8 with a description as to why the
     /// provided bytes are not UTF-8. The vector you moved in is also included.