-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)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
Unexpected behavior
-
Enable the "Show line numbers on code examples" option:
-
Copy the code by clicking "copy code to clipboard" in the upper right corner of a code example:
-
Paste the code somewhere, and you'll see redundant line numbers in the code:
Expected behavior
Regardless of whether the "Show line numbers on code examples" option is enabled, do not include line numbers when copying code examples!
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)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.