From ed07fa08bd0c235bf9d5d4fbb146e3fcac7a967d Mon Sep 17 00:00:00 2001 From: Tom Kuson Date: Thu, 8 Feb 2024 01:01:21 +0000 Subject: [PATCH] Fix list formatting in documention (#9886) ## Summary Adds a blank line to render the list correctly. ## Test Plan Ocular inspection --- .../ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs b/crates/ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs index e900e21500..dad58a9dc3 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/missing_fstring_syntax.rs @@ -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(...)`)