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,