Fix typo in Delimited::open_tt
This commit is contained in:
parent
09e3989758
commit
f176bcf742
3 changed files with 24 additions and 24 deletions
|
|
@ -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`.)
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue