diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-03 13:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-03 13:11:57 +0200 |
| commit | 42a32812751fcd532691f9e29a19ed5bceb928ad (patch) | |
| tree | 8c151ec2b8c65d40bc938678c803057398bc8406 /src/libsyntax | |
| parent | d7270712cb446aad0817040bbca73a8d024f67b0 (diff) | |
| parent | f176bcf7420dbc4b8cc297f1fdbff32813c558a7 (diff) | |
| download | rust-42a32812751fcd532691f9e29a19ed5bceb928ad.tar.gz rust-42a32812751fcd532691f9e29a19ed5bceb928ad.zip | |
Rollup merge of #62954 - ia0:fix_typo_span, r=Centril
Fix typo in Delimited::open_tt
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/tt/quoted.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 81c5ef135b2..ce695df7775 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -751,7 +751,7 @@ impl TokenSet { } // Checks that `matcher` is internally consistent and that it -// can legally by followed by a token N, for all N in `follow`. +// can legally be followed by a token `N`, for all `N` in `follow`. // (If `follow` is empty, then it imposes no constraint on // the `matcher`.) // diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs index f67e4d368cc..cad94a0e4c1 100644 --- a/src/libsyntax/ext/tt/quoted.rs +++ b/src/libsyntax/ext/tt/quoted.rs @@ -27,7 +27,7 @@ impl Delimited { let open_span = if span.is_dummy() { span } else { - span.with_lo(span.lo() + BytePos(self.delim.len() as u32)) + span.with_hi(span.lo() + BytePos(self.delim.len() as u32)) }; TokenTree::token(token::OpenDelim(self.delim), open_span) } |
