Skip to content

Commit 655f158

Browse files
committed
Fix formatting
1 parent 6c56757 commit 655f158

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/ArrayInterfaceCore/Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name = "ArrayInterfaceCore"
22
uuid = "30b0a656-2188-435a-8636-2ec0e6a096e2"
33
version = "0.1.14"
44

5-
65
[deps]
76
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
87
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,14 +729,13 @@ CheckIndexStyle(::Type) = CheckIndexAll()
729729
CheckIndexStyle(@nospecialize T::Type{<:AbstractArray}) = eltype(T) === Bool ? CheckIndexAxes() : CheckIndexAll()
730730
CheckIndexStyle(@nospecialize T::Type{<:AbstractRange}) = eltype(T) === Bool ? CheckIndexAxes() : CheckIndexFirstLast()
731731
CheckIndexStyle(@nospecialize T::Type{<:Base.FastContiguousSubArray}) = CheckIndexStyle(parent_type(T))
732-
CheckIndexStyle(::Type{Colon}) = CheckIndexNone()
733-
CheckIndexStyle(@nospecialize T::Type{<:Base.Slice}) = CheckIndexNone()
732+
CheckIndexStyle(@nospecialize T::Type{<:Union{Base.Slice,Colon}}) = CheckIndexNone()
734733
CheckIndexStyle(@nospecialize T::Type{<:Base.Fix2{<:Union{typeof(<),typeof(isless),typeof(>=),typeof(>),typeof(isless)},<:Number}}) = CheckIndexNone()
735734
CheckIndexStyle(@nospecialize T::Type{<:Number}) = CheckIndexFirstLast()
736735

737-
738736
"""
739737
is_splat_index(::Type{T}) -> Bool
738+
740739
Returns `static(true)` if `T` is a type that splats across multiple dimensions.
741740
"""
742741
is_splat_index(T::Type) = false

0 commit comments

Comments
 (0)