mirror of https://github.com/astral-sh/ruff
Simplify comment
This commit is contained in:
parent
6d88ac4ca2
commit
d2b0b1ca26
|
|
@ -335,11 +335,7 @@ fn parse_nested_placeholder<'a>(
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse and consume all placeholders in a format spec
|
/// 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>(
|
fn consume_all_placeholders<'a>(
|
||||||
placeholders: &mut Vec<FormatPart>,
|
placeholders: &mut Vec<FormatPart>,
|
||||||
text: &'a str,
|
text: &'a str,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue