1
- error: doc comments should use a back-slash (\) instead of a double space to indicate a linebreak
1
+ error: doc comment uses two spaces for a hard line break
2
2
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:7:43
3
3
|
4
4
LL | //! Should warn on double space linebreaks
@@ -8,13 +8,13 @@ LL | | //! in file/module doc comment
8
8
|
9
9
= note: `-D clippy::doc-comment-double-space-linebreak` implied by `-D warnings`
10
10
= help: to override `-D warnings` add `#[allow(clippy::doc_comment_double_space_linebreak)]`
11
- help: replace this double space with a back-slash
11
+ help: replace this double space with a backslash
12
12
|
13
13
LL ~ //! Should warn on double space linebreaks\
14
14
LL ~ //! in file/module doc comment
15
15
|
16
16
17
- error: doc comments should use a back-slash (\) instead of a double space to indicate a linebreak
17
+ error: doc comment uses two spaces for a hard line break
18
18
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:35:51
19
19
|
20
20
LL | /// Should warn when doc comment uses double space
@@ -23,14 +23,14 @@ LL | | /// as a line-break, even when there are multiple
23
23
LL | | /// in a row
24
24
| |____^
25
25
|
26
- help: replace this double space with a back-slash
26
+ help: replace this double space with a backslash
27
27
|
28
28
LL ~ /// Should warn when doc comment uses double space\
29
29
LL ~ /// as a line-break, even when there are multiple\
30
30
LL ~ /// in a row
31
31
|
32
32
33
- error: doc comments should use a back-slash (\) instead of a double space to indicate a linebreak
33
+ error: doc comment uses two spaces for a hard line break
34
34
--> tests/ui/doc/doc_comment_double_space_linebreak.rs:44:12
35
35
|
36
36
LL | /// 🌹 are 🟥
@@ -41,7 +41,7 @@ LL | | /// and so are 🫵
41
41
LL | | /// (hopefully no formatting weirdness linting this)
42
42
| |____^
43
43
|
44
- help: replace this double space with a back-slash
44
+ help: replace this double space with a backslash
45
45
|
46
46
LL ~ /// 🌹 are 🟥\
47
47
LL ~ /// 🌷 are 🟦\
@@ -50,5 +50,27 @@ LL ~ /// and so are 🫵\
50
50
LL ~ /// (hopefully no formatting weirdness linting this)
51
51
|
52
52
53
- error: aborting due to 3 previous errors
53
+ error: doc comment uses two spaces for a hard line break
54
+ --> tests/ui/doc/doc_comment_double_space_linebreak.rs:86:16
55
+ |
56
+ LL | /// here we mix
57
+ | ________________^
58
+ LL | | /// double spaces\
59
+ LL | | /// and also
60
+ LL | | /// adding backslash\
61
+ LL | | /// to some of them
62
+ LL | | /// to see how that looks
63
+ | |____^
64
+ |
65
+ help: replace this double space with a backslash
66
+ |
67
+ LL ~ /// here we mix\
68
+ LL ~ /// double spaces\
69
+ LL ~ /// and also\
70
+ LL ~ /// adding backslash\
71
+ LL ~ /// to some of them\
72
+ LL ~ /// to see how that looks
73
+ |
74
+
75
+ error: aborting due to 4 previous errors
54
76
0 commit comments