mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Consume EOL after line comment.
This commit is contained in:
@@ -590,6 +590,9 @@ fn read_to_eol(&reader rdr) -> str {
|
||||
str::push_char(val, rdr.curr());
|
||||
rdr.bump();
|
||||
}
|
||||
if rdr.curr() == '\n' {
|
||||
rdr.bump();
|
||||
}
|
||||
ret val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user