From 78ee7ae9254a08e49c9c6443512235f74a027584 Mon Sep 17 00:00:00 2001 From: Tom Kuson Date: Mon, 3 Nov 2025 19:04:59 +0000 Subject: [PATCH] [`flake8-comprehensions`] Fix typo in `C416` documentation (#21184) ## Summary Adds missing curly brace to the C416 documentation. ## Test Plan Build the docs --- .../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 f384b32e6e..70108c1ba7 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} /// ```