Skip to content

Commit db97053

Browse files
authored
Merge pull request #103 from baggepinnen/patch-1
Update docstring on @forward
2 parents 2f267d9 + ad3b89b commit db97053

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/macros.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ struct Wrapper
273273
x
274274
end
275275
276-
@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
276+
@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
277+
@forward Wrapper.x Base.length, Base.getindex, Base.iterate # several forwarded functions are put in a tuple
278+
@forward Wrapper.x (Base.length, Base.getindex, Base.iterate) # equivalent to above
277279
```
278280
"""
279281
macro forward(ex, fs)

0 commit comments

Comments
 (0)