From a1c98070018eaa7066c6834e45c8a3264bcf396a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 6 Sep 2018 08:58:10 -0700 Subject: Make doc examples compatible with stable --- src/path.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/path.rs') 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: -- cgit v1.2.3