Skip to content

Commit

Permalink
off by one error in interior() method
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 21, 2023
1 parent 00cd006 commit 8acc88f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geoarrow_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl<const N: usize> PolygonTrait for EsriPolygon<N> {
}

fn interior(&self, i: usize) -> Option<Self::ItemType<'_>> {
self.rings.iter().nth(i + 1)
let r = self.rings.get(i + 1);
r
}
}

0 comments on commit 8acc88f

Please sign in to comment.