Rename AnchorRangeSet::to_point_ranges -> point_ranges

This commit is contained in:
Max Brunsfeld 2021-10-28 16:32:49 -07:00
parent 9bc08e446b
commit a1e576343e
3 changed files with 5 additions and 5 deletions

View file

@ -200,14 +200,14 @@ impl AnchorRangeSet {
self.0.len()
}
pub fn to_offset_ranges<'a>(
pub fn offset_ranges<'a>(
&'a self,
content: impl Into<Content<'a>> + 'a,
) -> impl Iterator<Item = Range<usize>> + 'a {
self.0.offset_ranges(content).map(|(range, _)| range)
}
pub fn to_point_ranges<'a>(
pub fn point_ranges<'a>(
&'a self,
content: impl Into<Content<'a>> + 'a,
) -> impl Iterator<Item = Range<Point>> + 'a {