Skip to content

Commit

Permalink
Fix docstring for Val(c) in order that c accepts a Symbol (Juli…
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage authored Aug 12, 2020
1 parent 93f8a45 commit d28b737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,8 @@ const (:) = Colon()
Return `Val{c}()`, which contains no run-time data. Types like this can be used to
pass the information between functions through the value `c`, which must be an `isbits`
value. The intent of this construct is to be able to dispatch on constants directly (at
compile time) without having to test the value of the constant at run time.
value or a `Symbol`. The intent of this construct is to be able to dispatch on constants
directly (at compile time) without having to test the value of the constant at run time.
# Examples
```jldoctest
Expand Down

0 comments on commit d28b737

Please sign in to comment.