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

Escape comments #510

Merged
merged 11 commits into from
Sep 20, 2021
Merged

Escape comments #510

merged 11 commits into from
Sep 20, 2021

Conversation

nbaztec
Copy link
Contributor

@nbaztec nbaztec commented Jul 19, 2021

The PR fixes the problem of escaping URLs and Brackets in comments which fail on clippy lints.

Fixes #495

/// - escape urls as <http://foo.com>
/// - escape `[` & `]`
fn sanitize_line(line: &str) -> String {
lazy_static! {
Copy link
Member

Choose a reason for hiding this comment

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

Not totally sure if we really need lazy static but don't think it hurts that much.

@LucioFranco
Copy link
Member

@nbaztec looks like there is a test failure, can you fix that then we can merge?

@LucioFranco LucioFranco merged commit d7324c4 into tokio-rs:master Sep 20, 2021
@Kixunil
Copy link

Kixunil commented Sep 20, 2021

Thanks!

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.

Escape brackets in the doc
3 participants