Skip to content

Commit

Permalink
Improve BasicBlocks docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jul 4, 2023
1 parent 0057c01 commit 0869f5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/ruff/src/rules/ruff/rules/unreachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ struct BasicBlocks<'stmt> {
/// # Notes
///
/// The order of these block is unspecified. However it's guaranteed that
/// the last block is the statement in the function and the first block is
/// the last statement. The block are more or less in reverse order, but it
/// gets fussy around control flow statements (e.g. `if` statements).
/// the last block is the first statement in the function and the first
/// block is the last statement. The block are more or less in reverse
/// order, but it gets fussy around control flow statements (e.g. `while`
/// statements).
///
/// For loop blocks, and similar recurring control flows, the end of the
/// body will point to the loop block again (to create the loop). However an
Expand Down

0 comments on commit 0869f5a

Please sign in to comment.