Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dylwil3 committed Aug 7, 2024
1 parent fcc8cf0 commit 858bf05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::checkers::ast::Checker;

/// ## What it does
/// Checks for use or omission of parentheses around tuples in subscripts,
/// depending on the setting [`lint.ruff.parenthesize-tuple-in-getitem`]. By default, the use of parentheses
/// depending on the setting [`lint.ruff.parenthesize-tuple-in-subscript`]. By default, the use of parentheses
/// is considered a violation.
///
/// ## Why is this bad?
Expand Down
4 changes: 2 additions & 2 deletions crates/ruff_workspace/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2985,8 +2985,8 @@ pub struct RuffOptions {
default = r#"false"#,
value_type = "bool",
example = r#"
# Make it a violation to use `__getitem__` with a tuple argument without parentheses.
parenthesize-tuple-in-getitem = true
# Make it a violation to use a tuple in a subscript without parentheses.
parenthesize-tuple-in-subscript = true
"#
)]
pub parenthesize_tuple_in_subscript: Option<bool>,
Expand Down

0 comments on commit 858bf05

Please sign in to comment.