commit | 9b00f65ac9f8b907e84b178964a88f671ff9004f | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Sep 01 10:31:02 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Sep 01 10:43:29 2018 -0700 |
tree | ce07ff51e36a7c8c5535f087a7d8fca5debac074 | |
parent | 956449d8c53fb3aa6e9097143934390dff1bffc9 [diff] [blame] |
Remove macro_use and extern crate in doc tests
diff --git a/src/error.rs b/src/error.rs index e27a64d..67e3939 100644 --- a/src/error.rs +++ b/src/error.rs
@@ -45,10 +45,9 @@ /// # Example /// /// ``` - /// #[macro_use] - /// extern crate syn; - /// - /// use syn::{Ident, LitStr}; + /// # extern crate syn; + /// # + /// use syn::{Ident, LitStr, Token}; /// use syn::parse::{Error, ParseStream, Result}; /// /// // Parses input that looks like `name = "string"` where the key must be