From 858bf05b750a857904791d92cb3e7037dd64a219 Mon Sep 17 00:00:00 2001 From: dylwil3 Date: Wed, 7 Aug 2024 07:03:40 -0500 Subject: [PATCH] update docstrings --- .../ruff/rules/incorrectly_parenthesized_tuple_in_getitem.rs | 2 +- crates/ruff_workspace/src/options.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruff_linter/src/rules/ruff/rules/incorrectly_parenthesized_tuple_in_getitem.rs b/crates/ruff_linter/src/rules/ruff/rules/incorrectly_parenthesized_tuple_in_getitem.rs index e957bf735c283c..f6de1104e1bf38 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/incorrectly_parenthesized_tuple_in_getitem.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/incorrectly_parenthesized_tuple_in_getitem.rs @@ -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? diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index 2e87a0f3998560..db52812c013271 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -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,