libsyntax: Accept "1..3" as the preferred form of "1 to 3" in patterns
This commit is contained in:
@@ -1512,7 +1512,7 @@ fn print_pat(s: ps, &&pat: @ast::pat) {
|
||||
ast::pat_range(begin, end) => {
|
||||
print_expr(s, begin);
|
||||
space(s.s);
|
||||
word_space(s, ~"to");
|
||||
word(s.s, ~"..");
|
||||
print_expr(s, end);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user