Skip to content

Commit fbcac53

Browse files
authored
Update pattern-matching.md
1 parent a037420 commit fbcac53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
If you know what you're doing, you can pull out the name and fields via:
1717

1818
```julia
19-
julia> if isexpr(ex.args[2], :struct)
19+
julia> if Meta.isexpr(ex.args[2], :struct)
2020
(ex.args[2].args[2], ex.args[2].args[3].args)
2121
end
2222
(:Foo,{:( # line 3:),:(x::Int),:( # line 4:),:y})

0 commit comments

Comments
 (0)