From 2c862bc5327da3ab08165a3272acc6ddd2663c9b Mon Sep 17 00:00:00 2001 From: Tom Kuson Date: Sat, 1 Nov 2025 15:32:39 +0000 Subject: [PATCH] Fix typo in C416 documentation --- .../flake8_comprehensions/rules/unnecessary_comprehension.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs b/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs index f384b32e6eb4a..70108c1ba749f 100644 --- a/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs +++ b/crates/ruff_linter/src/rules/flake8_comprehensions/rules/unnecessary_comprehension.rs @@ -43,7 +43,7 @@ use crate::rules::flake8_comprehensions::fixes; /// >>> {x: y for x, y in d1} # Iterates over the keys of a mapping /// {1: 2, 4: 5} /// >>> dict(d1) # Ruff's incorrect suggested fix -/// (1, 2): 3, (4, 5): 6} +/// {(1, 2): 3, (4, 5): 6} /// >>> dict(d1.keys()) # Correct fix /// {1: 2, 4: 5} /// ```