Skip to content

Commit

Permalink
Remove trailing reference section (#11257)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed May 3, 2024
1 parent dfbeca5 commit 349a4cf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 349a4cf

Please sign in to comment.