Skip to content

Commit 9c4697a

Browse files
committed
improve comment
1 parent a9bc18a commit 9c4697a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<'a> Parser<'a> {
496496
} else {
497497
let exprs = self.parse_comma_separated(Parser::parse_expr)?;
498498
match exprs.len() {
499-
0 => unreachable!(), // parse_comma_separated doesn't error with one
499+
0 => unreachable!(), // parse_comma_separated ensures 1 or more
500500
1 => Expr::Nested(Box::new(exprs.into_iter().next().unwrap())),
501501
_ => Expr::Tuple(exprs),
502502
}

0 commit comments

Comments
 (0)