Skip to content

Commit 97db7c3

Browse files
committed
Fix doc strings for flatten methods
1 parent f8e50b0 commit 97db7c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/indexing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ specified here. Otherwise, `A` should not be specificied when supporting a new
9797
multi-dimensional indexing type. For example, the following is the typical usage:
9898
9999
```julia
100-
ArrayInterface.flatten_args(::Type{A}, ::Type{T}) where {A,T<:NewIndexer} = true
100+
ArrayInterface.can_flatten(::Type{A}, ::Type{T}) where {A,T<:NewIndexer} = true
101101
```
102102
103103
but in rare instances this may be necessary:
104104
105105
106106
```julia
107-
ArrayInterface.flatten_args(::Type{A}, ::Type{T}) where {A<:ForbiddenArray,T<:NewIndexer} = false
107+
ArrayInterface.can_flatten(::Type{A}, ::Type{T}) where {A<:ForbiddenArray,T<:NewIndexer} = false
108108
```
109109
110110
"""

0 commit comments

Comments
 (0)