mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
fixup
This commit is contained in:
parent
5b1cd8245f
commit
95fc3ba41c
@ -113,7 +113,7 @@ impl<'a> Printer<'a> {
|
||||
}
|
||||
|
||||
fn newline(&mut self) {
|
||||
match self.buf.chars().rev().skip_while(|ch| *ch == ' ').next() {
|
||||
match self.buf.chars().rev().find(|ch| *ch != ' ') {
|
||||
Some('\n') | None => {}
|
||||
_ => writeln!(self).unwrap(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user