aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-08-10 13:51:22 -0700
committerDavid Tolnay <dtolnay@gmail.com>2019-08-10 13:51:22 -0700
commit5218552d94bf0bd675939a6e5f87408d23533657 (patch)
tree6cccf3ea6aca348447c58b9d0bc3b320dd16da05
parent6e16c8f3ba38b55430faaf015717a316c10032fe (diff)
downloadplatform_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.md4
-rw-r--r--src/lib.rs9
2 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 8a5d590..d5df0e2 100644
--- a/README.md
+++ b/README.md
@@ -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 &mdash; 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
diff --git a/src/lib.rs b/src/lib.rs
index 0c773d4..274e60f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 &mdash; 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 &mdash; 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
///