rustdoc::passes::lint

Module unescaped_backticks

Source
Expand description

Detects unescaped backticks (`) in doc comments.

Structs§

Element πŸ”’
A markdown tagged element, which may or may not contain an unescaped backtick.

Enums§

PrevCodeGuess πŸ”’
A previous inline code node, that looks wrong.

Functions§

can_suggest_backtick πŸ”’
Returns whether inserting a backtick at dox[index] will not produce double backticks.
clamp_end πŸ”’
Decrease the index until it is inside or one past the end of one of the ranges.
clamp_start πŸ”’
Increase the index until it is inside or one past the end of one of the ranges.
guess_end_of_code πŸ”’
Given a potentially unclosed inline code, attempt to find the end.
guess_start_of_code πŸ”’
Given a potentially unclosed inline code, attempt to find the start.
suggest_insertion πŸ”’
Try to emit a span suggestion and fall back to help messages if we can’t find a suitable span.
visit_item πŸ”’