Skip to content

Commit 20c4638

Browse files
committed
remove unneeded parens
1 parent af48b42 commit 20c4638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ ERROR: I'm allergic to bananas!
135135
`@cases` can automatically detect if you did't give an exhaustive set of cases (with no runtime penalty) and throw an error.
136136
```julia
137137
julia> @cases myfruit begin
138-
Apple() => "Got an apple!"
139-
Orange() => "Got an orange!"
138+
Apple => "Got an apple!"
139+
Orange => "Got an orange!"
140140
end
141141
ERROR: Inexhaustive @cases specification. Got cases (:Apple, :Orange), expected (:Apple, :Banana, :Orange)
142142
[...]

0 commit comments

Comments
 (0)