Skip to content

Commit edf15e6

Browse files
committed
update region docs as they were wrong
1 parent f2f4d01 commit edf15e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

anathema-geometry/src/region.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ impl Region {
4949
}
5050

5151
/// Check if a region contains a position.
52-
/// Regions are inclusive, so a region from 0,0 to 10, 10 contains both Pos::ZERO and
53-
/// Pos::New(10, 10)
52+
/// Regions are exclusive, so a region from 0,0 to 10, 10 contains `Pos::ZERO`
53+
/// but not `Pos::New(10, 10)`
5454
pub const fn contains(&self, pos: Pos) -> bool {
5555
pos.x >= self.from.x && pos.x < self.to.x && pos.y >= self.from.y && pos.y < self.to.y
5656
}

0 commit comments

Comments
 (0)