]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #7183 - th1000s:write_nl_hint, r=flip1995
authorbors <bors@rust-lang.org>
Fri, 7 May 2021 12:13:35 +0000 (12:13 +0000)
committerbors <bors@rust-lang.org>
Fri, 7 May 2021 12:13:35 +0000 (12:13 +0000)
Handle write!(buf, "\n") case better

Make `write!(buf, "\n")` suggest `writeln!(buf)` by removing
the trailing comma from `writeln!(buf, )`.

changelog: [`write_with_newline`] suggestion on only "\n" improved


Trivial merge