aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-08-10 13:35:39 -0700
committerDavid Tolnay <dtolnay@gmail.com>2019-08-10 13:35:39 -0700
commitb9e03944016bca051a230220aba4d03420919757 (patch)
tree09a914fc474819c15d3a4f23986c49a9ba736c2f
parentbd7b579371f0730e77071ad4cf6f9d480e5acb31 (diff)
downloadplatform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.tar.gz
platform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.tar.bz2
platform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.zip
Clarify into-conversion to proc_macro::TokenStream
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 68db337..861f108 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -100,8 +100,10 @@ pub mod spanned;
/// The whole point.
///
/// Performs variable interpolation against the input and produces it as
-/// [`TokenStream`]. For returning tokens to the compiler in a procedural macro, use
-/// `into()` to build a `TokenStream`.
+/// [`proc_macro2::TokenStream`].
+///
+/// Note: for returning tokens to the compiler in a procedural macro, use
+/// `.into()` on the result to convert to [`proc_macro::TokenStream`].
///
/// [`TokenStream`]: https://docs.rs/proc-macro2/0.4/proc_macro2/struct.TokenStream.html
///