Skip to content

Commit

Permalink
[docs] fix extend-unsafe-fixes and extend-safe-fixes example error (
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil committed Oct 23, 2023
1 parent 6199590 commit 2401e91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_workspace/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ pub struct LintCommonOptions {
value_type = "list[RuleSelector]",
example = r#"
# Allow applying all unsafe fixes in the `E` rules and `F401` without the `--unsafe-fixes` flag
extend_safe_fixes = ["E", "F401"]
extend-safe-fixes = ["E", "F401"]
"#
)]
pub extend_safe_fixes: Option<Vec<RuleSelector>>,
Expand All @@ -578,7 +578,7 @@ pub struct LintCommonOptions {
value_type = "list[RuleSelector]",
example = r#"
# Require the `--unsafe-fixes` flag when fixing the `E` rules and `F401`
extend_unsafe_fixes = ["E", "F401"]
extend-unsafe-fixes = ["E", "F401"]
"#
)]
pub extend_unsafe_fixes: Option<Vec<RuleSelector>>,
Expand Down

0 comments on commit 2401e91

Please sign in to comment.