Skip to content

Commit 6d99adb

Browse files
committed
Fixed readme slice description.
1 parent 7e981a0 commit 6d99adb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,10 @@ Joins 2 intervals and whatever is inbetween.
512512
Removes other from this interval returning what is remaining.
513513
The range of other going beyond the range of this is ignored.
514514
Returns a struct with 2 members: left_slice and right_slice.
515+
```
515516
[ this interval ]
516517
[left][other][right]
518+
```
517519

518-
When the intervals are closed, adjacent results are differenty by 1.
520+
When the intervals are closed_adjacent, adjacent results are differenty by 1.
519521
[0, 9].slice([5, 19]) => left: [0, 4], right: nullopt

0 commit comments

Comments
 (0)