Account for ///
when rendering multiline spans
Don't consider `///` and `//!` docstrings to be empty for the purposes of multiline span rendering.
This commit is contained in:
parent
ad82d9f698
commit
9f1044ef76
18 changed files with 144 additions and 43 deletions
|
@ -2,7 +2,10 @@ error: unclosed quote string `"`
|
|||
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
@ -17,7 +20,10 @@ error: unclosed quote string `"`
|
|||
--> $DIR/custom_code_classes_in_docs-warning3.rs:8:1
|
||||
|
|
||||
LL | / /// ```{class="}
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
... |
|
||||
LL | | /// main;
|
||||
LL | | /// ```
|
||||
| |_______^
|
||||
|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue