Skip to content

Commit

Permalink
Fix unreachable code example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas de Zeeuw committed Jun 27, 2023
1 parent 576d03f commit 5983995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff/src/rules/ruff/rules/unreachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ use rustpython_parser::text_size::{TextRange, TextSize};
///
/// ## Example
/// ```python
/// def function()
/// def function():
/// if False:
/// return "unreachable"
/// return "reachable"
/// ```
///
/// Use instead:
/// ```python
/// def function()
/// def function():
/// return "reachable"
/// ```
#[violation]
Expand Down

0 comments on commit 5983995

Please sign in to comment.