fix off-by-one in parameter spans

This commit is contained in:
Andy Russell
2020-09-26 13:46:00 -04:00
parent 7f58716810
commit 95daa068f1
4 changed files with 37 additions and 37 deletions

View File

@@ -1744,7 +1744,7 @@ impl<'a> Parser<'a> {
}
};
let span = lo.to(self.token.span);
let span = lo.until(self.token.span);
Ok(Param {
attrs: attrs.into(),