]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/str.rs
docs: Standardize on 'Errors' header in std docs
[rust.git] / src / libcollections / str.rs
index 094b7f1d034536494d7e8554f22886582451306c..118675ab2c51dfec613400b3228c3080f50ecef0 100644 (file)
@@ -1644,7 +1644,7 @@ pub fn trim_right_matches<'a, P: Pattern<'a>>(&'a self, pat: P) -> &'a str
     ///
     /// [`FromStr`]: str/trait.FromStr.html
     ///
-    /// # Failure
+    /// # Errors
     ///
     /// Will return `Err` if it's not possible to parse this string slice into
     /// the desired type.