diff --git a/crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs b/crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs index 823200c0371d9a..eabce42e1dc6b7 100644 --- a/crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs +++ b/crates/ruff_linter/src/rules/refurb/rules/reimplemented_operator.rs @@ -28,7 +28,7 @@ use crate::importer::{ImportRequest, Importer}; /// import functools /// /// nums = [1, 2, 3] -/// sum = functools.reduce(lambda x, y: x + y, nums) +/// total = functools.reduce(lambda x, y: x + y, nums) /// ``` /// /// Use instead: @@ -37,10 +37,8 @@ use crate::importer::{ImportRequest, Importer}; /// import operator /// /// nums = [1, 2, 3] -/// sum = functools.reduce(operator.add, nums) +/// total = functools.reduce(operator.add, nums) /// ``` -/// -/// ## References #[violation] pub struct ReimplementedOperator { operator: Operator,