mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:41:23 +00:00
Fix list formatting in documention (#9886)
## Summary Adds a blank line to render the list correctly. ## Test Plan Ocular inspection
This commit is contained in:
parent
45937426c7
commit
ed07fa08bd
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ use rustc_hash::FxHashSet;
|
|||
///
|
||||
/// Since there are many possible string literals which contain syntax similar to f-strings yet are not intended to be,
|
||||
/// this lint will disqualify any literal that satisfies any of the following conditions:
|
||||
///
|
||||
/// 1. The string literal is a standalone expression. For example, a docstring.
|
||||
/// 2. The literal is part of a function call with keyword arguments that match at least one variable (for example: `format("Message: {value}", value = "Hello World")`)
|
||||
/// 3. The literal (or a parent expression of the literal) has a direct method call on it (for example: `"{value}".format(...)`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue