commit | a1c98070018eaa7066c6834e45c8a3264bcf396a | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Thu Sep 06 08:58:10 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Thu Sep 06 08:58:10 2018 -0700 |
tree | 551e79aeb97c7969c3ddd27a4f5a25d1469cf7b1 | |
parent | 8e6096aebe1f936eeaed41ce49b0b6a70646e8bd [diff] [blame] |
Make doc examples compatible with stable
diff --git a/src/path.rs b/src/path.rs index 693d71c..301a06b 100644 --- a/src/path.rs +++ b/src/path.rs
@@ -360,9 +360,10 @@ /// # 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: