Add clarifying comments on boundary conditions

pull/25/head
Wilfred Hughes 2019-11-19 13:34:24 +07:00
parent cc9d24ac98
commit bd95bdc68c
1 changed files with 2 additions and 2 deletions

@ -10,8 +10,8 @@ use pretty_assertions::assert_eq;
/// A range in a string, relative to the string start.
#[derive(Debug, PartialEq, Clone, Copy)]
pub struct AbsoluteRange {
pub start: usize,
pub end: usize,
pub start: usize, // inclusive
pub end: usize, // exclusive
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]