Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 21, 2021
Merged

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

merged 1 commit into from
Jan 21, 2021

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