From d2b0b1ca2686e7ca64b8d2364c36ea38b68b1497 Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 22 Aug 2023 10:23:31 -0500 Subject: [PATCH] Simplify comment --- crates/ruff_python_literal/src/format.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/ruff_python_literal/src/format.rs b/crates/ruff_python_literal/src/format.rs index 457ee497f6..dcb0d2cb10 100644 --- a/crates/ruff_python_literal/src/format.rs +++ b/crates/ruff_python_literal/src/format.rs @@ -335,11 +335,7 @@ fn parse_nested_placeholder<'a>( } /// Parse and consume all placeholders in a format spec -/// -/// This will also consume any intermediate characters such as `x` and `y` in -/// ``` -/// "x{foo}y{bar}z" -/// ``` +/// This will also consume any intermediate characters such as `x` and `y` in `"x{foo}y{bar}z"` fn consume_all_placeholders<'a>( placeholders: &mut Vec, text: &'a str,