diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-07 15:12:53 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-07 15:12:53 +0000 |
commit | 9a88332452d661d4afea10f0063c893142e08019 (patch) | |
tree | 6c86ff943373b9e20f5c7cd877706aacacc9a505 /crates/ide | |
parent | 6df91a84dc129b13dc58db510e68c5eb04297087 (diff) | |
parent | 93262c750e65dcc58b9a87b9efdec55177269210 (diff) |
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 <[email protected]>
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/hover.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 462f5c2b8..dc9621f46 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -1525,9 +1525,7 @@ fn foo() { let bar = Ba<|>r; } | |||
1525 | --- | 1525 | --- |
1526 | 1526 | ||
1527 | bar docs 0 | 1527 | bar docs 0 |
1528 | |||
1529 | bar docs 1 | 1528 | bar docs 1 |
1530 | |||
1531 | bar docs 2 | 1529 | bar docs 2 |
1532 | "#]], | 1530 | "#]], |
1533 | ); | 1531 | ); |