mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[docs] fix typo (#8013)
## Summary Fix a typo in the docs for quote style. > a = "a string without any quotes" > b = "It's monday morning" > Ruff will change a to use single quotes when using quote-style = "single". However, a will be unchanged, as converting to single quotes would require the inner ' to be escaped, which leads to less readable code: 'It\'s monday morning'. It should read "However, **b** will be unchanged". ## Test Plan N/A.
This commit is contained in:
parent
f60aa85471
commit
88c0106421
2 changed files with 2 additions and 2 deletions
|
@ -2509,7 +2509,7 @@ pub struct FormatOptions {
|
|||
/// ```
|
||||
///
|
||||
/// Ruff will change `a` to use single quotes when using `quote-style = "single"`. However,
|
||||
/// `a` will be unchanged, as converting to single quotes would require the inner `'` to be
|
||||
/// `b` will be unchanged, as converting to single quotes would require the inner `'` to be
|
||||
/// escaped, which leads to less readable code: `'It\'s monday morning'`.
|
||||
#[option(
|
||||
default = r#"double"#,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue