diff options
author | David Tolnay <dtolnay@gmail.com> | 2019-08-10 13:51:22 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2019-08-10 13:51:22 -0700 |
commit | 5218552d94bf0bd675939a6e5f87408d23533657 (patch) | |
tree | 6cccf3ea6aca348447c58b9d0bc3b320dd16da05 | |
parent | 6e16c8f3ba38b55430faaf015717a316c10032fe (diff) | |
download | platform_external_rust_crates_quote-5218552d94bf0bd675939a6e5f87408d23533657.tar.gz platform_external_rust_crates_quote-5218552d94bf0bd675939a6e5f87408d23533657.tar.bz2 platform_external_rust_crates_quote-5218552d94bf0bd675939a6e5f87408d23533657.zip |
Em dashes
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/lib.rs | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -13,8 +13,8 @@ structures into tokens of source code. Procedural macros in Rust receive a stream of tokens as input, execute arbitrary Rust code to determine how to manipulate those tokens, and produce a stream of tokens to hand back to the compiler to compile into the caller's crate. -Quasi-quoting is a solution to one piece of that -- producing tokens to return -to the compiler. +Quasi-quoting is a solution to one piece of that — producing tokens to +return to the compiler. The idea of quasi-quoting is that we write *code* that we treat as *data*. Within the `quote!` macro, we can write what looks like code to our text editor @@ -6,8 +6,8 @@ //! Procedural macros in Rust receive a stream of tokens as input, execute //! arbitrary Rust code to determine how to manipulate those tokens, and produce //! a stream of tokens to hand back to the compiler to compile into the caller's -//! crate. Quasi-quoting is a solution to one piece of that -- producing tokens -//! to return to the compiler. +//! crate. Quasi-quoting is a solution to one piece of that — producing +//! tokens to return to the compiler. //! //! The idea of quasi-quoting is that we write *code* that we treat as *data*. //! Within the `quote!` macro, we can write what looks like code to our text @@ -346,8 +346,9 @@ macro_rules! quote { /// # Syntax /// /// A span expression of type [`Span`], followed by `=>`, followed by the tokens -/// to quote. The span expression should be brief -- use a variable for anything -/// more than a few characters. There should be no space before the `=>` token. +/// to quote. The span expression should be brief — use a variable for +/// anything more than a few characters. There should be no space before the +/// `=>` token. /// /// [`Span`]: https://docs.rs/proc-macro2/0.4/proc_macro2/struct.Span.html /// |