Skip to content

Commit

Permalink
Merge pull request #103 from baggepinnen/patch-1
Browse files Browse the repository at this point in the history
Update docstring on @forward
  • Loading branch information
MikeInnes authored Oct 16, 2018
2 parents 2f267d9 + ad3b89b commit db97053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ struct Wrapper
x
end
@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
@forward Wrapper.x Base.length, Base.getindex, Base.iterate # several forwarded functions are put in a tuple
@forward Wrapper.x (Base.length, Base.getindex, Base.iterate) # equivalent to above
```
"""
macro forward(ex, fs)
Expand Down

0 comments on commit db97053

Please sign in to comment.