Skip to content

Commit 9fd998c

Browse files
committed
formatting
1 parent 7486ce7 commit 9fd998c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ with switch(value) as s:
6363
s.default(lambda: ...)
6464
```
6565

66-
**Closed vs. Open ranges**
66+
## Closed vs. Open ranges
6767

6868
Looking at the above code it's a bit weird that 6 appears
6969
at the end of one case, beginning of the next. But `range()` is
7070
half open/closed.
7171

7272
To handle the inclusive case, I've added closed_range(start, stop).
73-
For example, closed_range(1,5) -> [1,2,3,4,5]
73+
For example, `closed_range(1,5)` -> `[1,2,3,4,5]`
7474

7575
## Why not just raw `dict`?
7676

0 commit comments

Comments
 (0)