Skip to content

doc: Use "text" instead of "ignore" attribute for regex examples#741

Merged
BurntSushi merged 1 commit intorust-lang:masterfrom
markusolt:use-text-attribute-for-regex-doc-tests
Jan 21, 2021
Merged

doc: Use "text" instead of "ignore" attribute for regex examples#741
BurntSushi merged 1 commit intorust-lang:masterfrom
markusolt:use-text-attribute-for-regex-doc-tests

Conversation

@markusolt
Copy link
Contributor

Replaces the "ignore" attribute with the "text" attribute for all documentation comment code blocks that contain regular expressions. This removes the syntax highlighting and removes the warning "This example is not tested". The code blocks will instead render without any syntax highlighting or warnings.

See for example the second code block on this page or the code blocks on this page of the regex-syntax crate.

Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

@BurntSushi BurntSushi merged commit bf7f8f1 into rust-lang:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants