Cleanup: Fix grammar in IndexRange header

Also make it more clear by avoiding repeating the name of the function.
This commit is contained in:
Hans Goudey 2022-09-18 22:57:46 -05:00
parent ecf3435362
commit a45b408422
1 changed files with 3 additions and 3 deletions

View File

@ -252,9 +252,9 @@ class IndexRange {
}
/**
* Returns a new range, that contains the intersection of the current one with the given range.
* Returns empty range is no intersection exists.
* Returned range is always a valid slice of this range.
* Returns a new IndexRange that contains the intersection of the current one with the given
* range. Returns empty range if there are no overlapping indices. The returned range is always
* a valid slice of this range.
*/
constexpr IndexRange intersect(IndexRange other) const
{