diff --git a/base/reflection.jl b/base/reflection.jl index 5268beddeb8eb..0f52ab731bd0d 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -2164,8 +2164,8 @@ Provides a convenient way to call [`Base.invokelatest`](@ref). It also supports the following syntax: - `@invokelatest x.f` expands to `Base.invokelatest(getproperty, x, :f)` - `@invokelatest x.f = v` expands to `Base.invokelatest(setproperty!, x, :f, v)` -- `@invokelatest xs[i]` expands to `invoke(getindex, xs, i)` -- `@invokelatest xs[i] = v` expands to `invoke(setindex!, xs, v, i)` +- `@invokelatest xs[i]` expands to `Base.invokelatest(getindex, xs, i)` +- `@invokelatest xs[i] = v` expands to `Base.invokelatest(setindex!, xs, v, i)` ```jldoctest julia> @macroexpand @invokelatest f(x; kw=kwv) @@ -2188,7 +2188,7 @@ julia> @macroexpand @invokelatest xs[i] = v This macro requires Julia 1.7 or later. !!! compat "Julia 1.10" - The additional syntax is supported as of Julia 1.10. + The additional `x.f` and `xs[i]` syntax requires Julia 1.10. """ macro invokelatest(ex) topmod = Core.Compiler._topmod(__module__) # well, except, do not get it via CC but define it locally