aboutsummaryrefslogtreecommitdiff
path: root/src/path.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2018-09-06 08:58:10 -0700
committerDavid Tolnay <dtolnay@gmail.com>2018-09-06 08:58:10 -0700
commita1c98070018eaa7066c6834e45c8a3264bcf396a (patch)
tree551e79aeb97c7969c3ddd27a4f5a25d1469cf7b1 /src/path.rs
parent8e6096aebe1f936eeaed41ce49b0b6a70646e8bd (diff)
downloadsyn-a1c98070018eaa7066c6834e45c8a3264bcf396a.tar.gz
Make doc examples compatible with stable
Diffstat (limited to 'src/path.rs')
-rw-r--r--src/path.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/path.rs b/src/path.rs
index 693d71c7..301a06be 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -360,9 +360,10 @@ pub mod parsing {
/// # Example
///
/// ```
- /// # extern crate syn;
- /// #
- /// use syn::{Path, Token};
+ /// #[macro_use]
+ /// extern crate syn;
+ ///
+ /// use syn::Path;
/// use syn::parse::{Parse, ParseStream, Result};
///
/// // A simplified single `use` statement like: