Skip to content

Commit

Permalink
Fix docs so that they refer to the new implementation of [@]inline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarne committed May 4, 2016
1 parent 26d2f2c commit 90de028
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doc/devdocs/meta.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ expression in the body of a function.
the implementation of the ``@inline`` macro::

macro inline(ex)
esc(_inline(ex))
esc(isa(ex, Expr) ? pushmeta!(ex, :inline) : ex)
end

_inline(ex::Expr) = Base.pushmeta!(ex, :inline)
_inline(arg) = arg

Here, ``ex`` is expected to be an expression defining a function.
A statement like this::

Expand All @@ -39,7 +36,7 @@ gets turned into an expression like this::
end
end

``pushmeta!(ex, :symbol, args...)`` appends ``:symbol`` to the end of
``Base.pushmeta!(ex, :symbol, args...)`` appends ``:symbol`` to the end of
the ``:meta`` expression, creating a new ``:meta`` expression if
necessary. If ``args`` is specified, a nested expression containing
``:symbol`` and these arguments is appended instead, which can be used
Expand Down

0 comments on commit 90de028

Please sign in to comment.