diff --git a/crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs b/crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs index f815258da2..1f5f5a0763 100644 --- a/crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs +++ b/crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs @@ -238,6 +238,9 @@ impl Violation for DocstringExtraneousYields { /// /// ## Example /// ```python +/// class FasterThanLightError(ArithmeticError): ... +/// +/// /// def calculate_speed(distance: float, time: float) -> float: /// """Calculate speed as distance divided by time. /// @@ -256,6 +259,9 @@ impl Violation for DocstringExtraneousYields { /// /// Use instead: /// ```python +/// class FasterThanLightError(ArithmeticError): ... +/// +/// /// def calculate_speed(distance: float, time: float) -> float: /// """Calculate speed as distance divided by time. ///