]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #90657 - GuillaumeGomez:one-char-last-line-removed, r=jyn514
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 8 Nov 2021 14:15:24 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Nov 2021 14:15:24 +0000 (15:15 +0100)
Fix bug with `#[doc]` string single-character last lines

Fixes #90618.

This is because `.iter().all(|c| c == '*')` returns `true` if there is no character checked. And in case the last line has only one character, it simply returns `true`, making the last line behind removed.


Trivial merge