File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ ast_struct! {
1515 ///
1616 /// ```
1717 /// use std::env;
18- /// use std::fs::read_to_string ;
18+ /// use std::fs;
1919 /// use std::process;
2020 ///
2121 /// fn main() {
@@ -33,7 +33,7 @@ ast_struct! {
3333 /// }
3434 /// };
3535 ///
36- /// let src = read_to_string(&filename).expect("unable to read file");
36+ /// let src = fs:: read_to_string(&filename).expect("unable to read file");
3737 /// let syntax = syn::parse_file(&src).expect("unable to parse file");
3838 ///
3939 /// // Debug impl is available if Syn is built with "extra-traits" feature.
Original file line number Diff line number Diff line change @@ -973,11 +973,11 @@ pub fn parse_str<T: parse::Parse>(s: &str) -> Result<T> {
973973///
974974/// ```no_run
975975/// use std::error::Error;
976- /// use std::fs::read_to_string ;
976+ /// use std::fs;
977977/// use std::io::Read;
978978///
979979/// fn run() -> Result<(), Box<dyn Error>> {
980- /// let content = read_to_string("path/to/code.rs")?;
980+ /// let content = fs:: read_to_string("path/to/code.rs")?;
981981/// let ast = syn::parse_file(&content)?;
982982/// if let Some(shebang) = ast.shebang {
983983/// println!("{}", shebang);
You can’t perform that action at this time.
0 commit comments