Skip to content

Commit

Permalink
Em dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 10, 2019
1 parent ceef429 commit 51b5541
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/heapsize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ error[E0277]: the trait bound `std::thread::Thread: HeapSize` is not satisfied

Some unstable APIs in the `proc-macro2` crate let us improve this further by
joining together the span of the field name and the field type. There is no
difference in our code -- everything is as shown in this directory -- but
building the example crate with `cargo build` shows errors like the one above
and building with `RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo build` is
able to show errors like the following.
difference in our code — everything is as shown in this directory —
but building the example crate with `cargo build` shows errors like the one
above and building with `RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo build`
is able to show errors like the following.

```
error[E0277]: the trait bound `std::thread::Thread: HeapSize` is not satisfied
Expand Down
8 changes: 4 additions & 4 deletions src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ macro_rules! define_keywords {
#[cfg_attr(feature = "clone-impls", derive(Copy, Clone))]
#[$doc]
///
/// Don't try to remember the name of this type -- use the [`Token!`]
/// macro instead.
/// Don't try to remember the name of this type — use the
/// [`Token!`] macro instead.
///
/// [`Token!`]: crate::token
pub struct $name {
Expand Down Expand Up @@ -342,8 +342,8 @@ macro_rules! define_punctuation_structs {
#[repr(C)]
#[$doc]
///
/// Don't try to remember the name of this type -- use the [`Token!`]
/// macro instead.
/// Don't try to remember the name of this type — use the
/// [`Token!`] macro instead.
///
/// [`Token!`]: crate::token
pub struct $name {
Expand Down

0 comments on commit 51b5541

Please sign in to comment.