diff --git a/base/Enums.jl b/base/Enums.jl index 021c8c4bea561b..4c457443f678d5 100644 --- a/base/Enums.jl +++ b/base/Enums.jl @@ -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.