Skip to content

Commit c422506

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

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
@@ -19,7 +19,7 @@ If you know what you're doing, you can pull out the name and fields via:
1919
julia> if Meta.isexpr(ex.args[2], :struct)
2020
(ex.args[2].args[2], ex.args[2].args[3].args)
2121
end
22-
(:Foo,{:( # line 3:),:(x::Int),:( # line 4:),:y})
22+
(:Foo, Any[:(#= line 3 =#), :(x::Int), :(#= line 4 =#), :y])
2323
```
2424

2525
But this is hard to write – since you have to deconstruct the `type`

0 commit comments

Comments
 (0)