Skip to content

Commit

Permalink
corrected the example
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Kazmin committed Sep 30, 2019
1 parent cf91a70 commit 42e9afe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/src/manual/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```
Expand Down

0 comments on commit 42e9afe

Please sign in to comment.