Skip to content

Commit

Permalink
correct what @userplot actually expands to (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugomez authored Aug 9, 2024
1 parent 247aa0a commit a9a5d87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/RecipesBase/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ end
export myplot, myplot!
myplot(args...; kw...) = plot(MyPlot(args); kw...)
myplot!(args...; kw...) = plot!(MyPlot(args); kw...)
myplot!(p::AbstractPlot, args...; kw...) = plot!(p, MyPlot(args); kw...)
```

To check `args` type, define a struct with type parameters.
Expand Down

0 comments on commit a9a5d87

Please sign in to comment.