Skip to content

Commit

Permalink
Update match.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Feb 5, 2025
1 parent ad4d72c commit b038d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/match.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def main() -> int:
return 0
```

The `case _` may be omitted if you don't want to do anything for other values
(unless you are matching an enum, see [below](#special-casing-for-enums))
The `case _` is special syntax that means "anything else".
It may be omitted if you don't want to do anything for other values.

Match statements can only be used with [integer types](types.md#integers) (`int` in this example) and [enums](enums.md).
[Jou doesn't have very many different kinds of types](types.md), so this covers most use cases.
Expand Down

0 comments on commit b038d6b

Please sign in to comment.