Skip to content

Commit

Permalink
add compat annotation to NamedTuple macro docs (#34880)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Mar 9, 2020
1 parent 3dac6dd commit eb1c0d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/namedtuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ julia> @NamedTuple begin
end
NamedTuple{(:a, :b),Tuple{Float64,String}}
```
!!! compat "Julia 1.5"
This macro is available as of Julia 1.5.
"""
macro NamedTuple(ex)
Meta.isexpr(ex, :braces) || Meta.isexpr(ex, :block) ||
Expand Down

0 comments on commit eb1c0d1

Please sign in to comment.