Skip to content

Commit

Permalink
chore: improve explaining comment
Browse files Browse the repository at this point in the history
Authored-by: RobWalt <robwalter96@gmail.com>
  • Loading branch information
RobWalt committed Feb 1, 2024
1 parent 2b62f72 commit c45df08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo/src/algorithm/stitch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ fn stitch_rings_from_lines<F: GeoFloat>(

let mut rings: Vec<LineString<F>> = vec![];
// terminates since every loop we'll merge two elements into one so the total number of
// elements decreases each loop by one
// elements decreases each loop by at least one (two in the case of completing a ring)
while let Some(last_part) = ring_parts.pop() {
let (j, compound_part) = ring_parts
.iter()
Expand Down

0 comments on commit c45df08

Please sign in to comment.