]> git.lizzy.rs Git - rust.git/commit
Merge #6743
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 7 Dec 2020 15:12:53 +0000 (15:12 +0000)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 15:12:53 +0000 (15:12 +0000)
commit9a88332452d661d4afea10f0063c893142e08019
tree6c86ff943373b9e20f5c7cd877706aacacc9a505
parent6df91a84dc129b13dc58db510e68c5eb04297087
parent93262c750e65dcc58b9a87b9efdec55177269210
Merge #6743

6743: Don't insert blank lines between doc attributes r=Veykril a=Veykril

Fixes #6742.
Doc attributes should be concatenated via a single linebreak as written in the [rustdoc book](https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html).
Also changed the loop to use an iterator to get rid of the `docs.trim_end_matches("\n\n").to_owned()` part using `Itertools::intersperse`.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>