diff --git a/doc/src/manual/interfaces.md b/doc/src/manual/interfaces.md index 5c853ab018e4d..0e2fcf31db2c9 100644 --- a/doc/src/manual/interfaces.md +++ b/doc/src/manual/interfaces.md @@ -415,11 +415,9 @@ julia> mutable struct MyArray{T,N} <: AbstractArray{T,N} julia> Base.size(A::MyArray) = size(A.a) -julia> Base.@propagate_inbounds Base.getindex(A::MyArray, i...) = getindex(A. -a, i...) +julia> Base.@propagate_inbounds Base.getindex(A::MyArray, i...) = getindex(A.a, i...) -julia> Base.@propagate_inbounds Base.setindex!(A::MyArray, v, i...) = setinde -x!(A.a, v, i...) +julia> Base.@propagate_inbounds Base.setindex!(A::MyArray, v, i...) = setindex!(A.a, v, i...) julia> Base.IndexStyle(::Type{<:MyArray}) = IndexLinear() ```