Skip to content

Commit 7eb358e

Browse files
authored
doc fix for @invokelatest (JuliaLang#50342)
1 parent cb6d0f2 commit 7eb358e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/reflection.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,8 +2164,8 @@ Provides a convenient way to call [`invokelatest`](@ref).
21642164
It also supports the following syntax:
21652165
- `@invokelatest x.f` expands to `Base.invokelatest(getproperty, x, :f)`
21662166
- `@invokelatest x.f = v` expands to `Base.invokelatest(setproperty!, x, :f, v)`
2167-
- `@invokelatest xs[i]` expands to `invoke(getindex, xs, i)`
2168-
- `@invokelatest xs[i] = v` expands to `invoke(setindex!, xs, v, i)`
2167+
- `@invokelatest xs[i]` expands to `Base.invokelatest(getindex, xs, i)`
2168+
- `@invokelatest xs[i] = v` expands to `Base.invokelatest(setindex!, xs, v, i)`
21692169
21702170
```jldoctest
21712171
julia> @macroexpand @invokelatest f(x; kw=kwv)
@@ -2191,7 +2191,7 @@ julia> @macroexpand @invokelatest xs[i] = v
21912191
Prior to Julia 1.9, this macro was not exported, and was called as `Base.@invokelatest`.
21922192
21932193
!!! compat "Julia 1.10"
2194-
The additional syntax is supported as of Julia 1.10.
2194+
The additional `x.f` and `xs[i]` syntax requires Julia 1.10.
21952195
"""
21962196
macro invokelatest(ex)
21972197
topmod = Core.Compiler._topmod(__module__) # well, except, do not get it via CC but define it locally

0 commit comments

Comments
 (0)