Fix typo in Delimited::open_tt

This commit is contained in:
Julien Cretin 2019-07-24 23:21:25 +02:00
parent 09e3989758
commit f176bcf742
3 changed files with 24 additions and 24 deletions

View file

@ -748,7 +748,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`.)
//

View file

@ -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)
}