diff options
author | David Tolnay <dtolnay@gmail.com> | 2019-01-19 13:47:03 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2019-01-19 18:50:05 -0800 |
commit | d13a84a83fe94b15dd46dc52748e0144a77348f3 (patch) | |
tree | 5a6f945ab58e05c61e344b7abef6c342f1c96fd2 /src/ext.rs | |
parent | d6134294c446905e58d8bc139234deca3d43f5aa (diff) | |
download | platform_external_rust_crates_quote-d13a84a83fe94b15dd46dc52748e0144a77348f3.tar.gz platform_external_rust_crates_quote-d13a84a83fe94b15dd46dc52748e0144a77348f3.tar.bz2 platform_external_rust_crates_quote-d13a84a83fe94b15dd46dc52748e0144a77348f3.zip |
Update doc tests to 2018 edition
Diffstat (limited to 'src/ext.rs')
-rw-r--r-- | src/ext.rs | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -17,12 +17,10 @@ pub trait TokenStreamExt: private::Sealed { /// For use by `ToTokens` implementations. /// - /// ``` - /// # #[macro_use] extern crate quote; - /// # extern crate proc_macro2; - /// # use quote::{TokenStreamExt, ToTokens}; + /// ```edition2018 + /// # use quote::{quote, TokenStreamExt, ToTokens}; /// # use proc_macro2::TokenStream; - /// # fn main() { + /// # /// struct X; /// /// impl ToTokens for X { @@ -33,7 +31,6 @@ pub trait TokenStreamExt: private::Sealed { /// /// let tokens = quote!(#X); /// assert_eq!(tokens.to_string(), "true false"); - /// # } /// ``` fn append_all<T, I>(&mut self, iter: I) where |