Skip to content

Commit

Permalink
Update Enums.jl (#28769)
Browse files Browse the repository at this point in the history
Helps #28768

(cherry picked from commit b6b471c)
  • Loading branch information
scls19fr authored and KristofferC committed Sep 8, 2018
1 parent 68d4536 commit 64e3ec3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/Enums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ f (generic function with 1 method)
julia> f(apple)
"I'm a Fruit with value: 1"
julia> Fruit(1)
apple::Fruit = 1
```
Values can also be specified inside a `begin` block, e.g.
Expand Down

0 comments on commit 64e3ec3

Please sign in to comment.