From e881e838d3a43ad644118847faac55360acbd281 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 12 Jan 2024 08:45:14 +0000 Subject: [PATCH] Fix backticks in RUF021 docs The docs for this rule aren't generating properly: https://docs.astral.sh/ruff/rules/parenthesize-chained-operators/#why-is-this-bad. I assume this is the reason why! --- .../src/rules/ruff/rules/parenthesize_logical_operators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/ruff/rules/parenthesize_logical_operators.rs b/crates/ruff_linter/src/rules/ruff/rules/parenthesize_logical_operators.rs index 4a96af1cdf4a3..04e140bf360bf 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/parenthesize_logical_operators.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/parenthesize_logical_operators.rs @@ -32,7 +32,7 @@ use crate::checkers::ast::Checker; /// /// d, e, f = 0, 1, 2 /// y = (d and e) or f -/// ```` +/// ``` #[violation] pub struct ParenthesizeChainedOperators;