We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e3d159 commit 2994b26Copy full SHA for 2994b26
src/lib.rs
@@ -55,10 +55,10 @@ macro_rules! inspect(
55
/// This improves things so you use match without Strings:
56
///
57
/// ```rust
58
-/// use std::str::from_str;
+/// use std::str::FromStr;
59
/// use mime::{Mime, TopLevel, SubLevel};
60
61
-/// let mime: mime::Mime = from_str("application/json").unwrap();
+/// let mime: mime::Mime = FromStr::from_str("application/json").unwrap();
62
63
/// match mime {
64
/// Mime(TopLevel::Application, SubLevel::Json, _) => println!("matched json!"),
0 commit comments