-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I tried this code:
#[must_use = "this is a \
message"]
pub fn f() {}
I expected to see this happen: Rustdoc will render the string as #[must_use = "this is a message"]
Instead, this happened: It is rendered with a backslash:
Meta
rustdoc 1.51.0-nightly (f4eb5d9f7 2021-01-25)
I believe this started in 1.44 via #69686.
(This is a pretty minor issue, I'm not sure it is worth putting energy into, but it does look a little strange.)
EFanZh
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.