Skip to content

Commit

Permalink
Use Type not DataType
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Apr 7, 2024
1 parent 9068d07 commit a208c5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ndgrid-oneto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ where `1 ≤ d ≤ D`.
struct GridOT{T,d,D} <: AbstractGrid{T,d,D}
dims::Dims{D}

function GridOT(T::DataType, dims::Dims{D}, d::Int) where D
function GridOT(T::Type{<:Integer}, dims::Dims{D}, d::Int) where D
1 d D || throw(ArgumentError("$d for $dims"))
T <: Integer || throw(ArgumentError("T = $T"))
new{T,d,D}(dims)
end
end
Expand Down

0 comments on commit a208c5b

Please sign in to comment.