aboutsummaryrefslogtreecommitdiffstats
path: root/src/ext.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-01-19 13:47:03 -0800
committerDavid Tolnay <dtolnay@gmail.com>2019-01-19 18:50:05 -0800
commitd13a84a83fe94b15dd46dc52748e0144a77348f3 (patch)
tree5a6f945ab58e05c61e344b7abef6c342f1c96fd2 /src/ext.rs
parentd6134294c446905e58d8bc139234deca3d43f5aa (diff)
downloadplatform_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.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ext.rs b/src/ext.rs
index 21bc71f..7ebbe30 100644
--- a/src/ext.rs
+++ b/src/ext.rs
@@ -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