mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Fix typo in documentation (#5961)
## Summary Close unclosed inline code block that was causing the text not to render properly. ## Test Plan `mkdocs serve`
This commit is contained in:
parent
f1f89f2a7e
commit
9bbb0a5151
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ use crate::checkers::ast::Checker;
|
|||
/// ## Why is this bad?
|
||||
/// To check if a variable is equal to one of many values, it is common to
|
||||
/// write a series of equality comparisons (e.g.,
|
||||
/// `foo == "bar" or foo == "baz").
|
||||
/// `foo == "bar" or foo == "baz"`).
|
||||
///
|
||||
/// Instead, prefer to combine the values into a collection and use the `in`
|
||||
/// operator to check for membership, which is more performant and succinct.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue