Skip to content

Commit

Permalink
fix @d doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Nov 29, 2019
1 parent 32c0ba7 commit d0b8b1f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,14 @@ s(xs...) = Set{Any}(xs)
d(xs...) = Dict{Any, Any}(xs...)

"""
Creates a typed dictionary, e.g.
Creates an **un**typed dictionary, e.g.
julia> @d(a=>1,b=>2)
Dict{Any,Any} with 2 entries:
:a => 1
:b => 2
```julia
julia> @d(:a=>1, :b=>2)
Dict{Any,Any} with 2 entries:
:a => 1
:b => 2
```
"""
macro d(xs...)
:(Dict{Any, Any}($(map(esc, xs)...)))
Expand Down

0 comments on commit d0b8b1f

Please sign in to comment.