add an example to the readme for overlap

This commit is contained in:
ripytide
2023-12-27 14:54:54 +00:00
parent 3616225c13
commit 92850de342
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -272,7 +272,8 @@ Here are a few examples of ranges and whether they are valid:
### Overlap
Two ranges are "overlapping" if there exists a point that is contained
within both ranges.
within both ranges. For example, `2..4` and `2..6` overlap but `2..4`
and `4..8` do not.
### Touching
+2 -1
View File
@@ -275,7 +275,8 @@ along with discrete_range_map. If not, see <https://www.gnu.org/licenses/>.
//! ### Overlap
//!
//! Two ranges are "overlapping" if there exists a point that is contained
//! within both ranges.
//! within both ranges. For example, `2..4` and `2..6` overlap but `2..4`
//! and `4..8` do not.
//!
//! ### Touching
//!