Skip to content

Commit 8177052

Browse files
authored
simplify outer constructor definition (#8)
1 parent 66893f4 commit 8177052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedSizeArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ end
1010
const FixedSizeVector{T} = FixedSizeArray{T,1}
1111
const FixedSizeMatrix{T} = FixedSizeArray{T,2}
1212

13-
function (self::Type{FixedSizeArray{T,N}})(::UndefInitializer, size::Vararg{Int,N}) where {T,N}
13+
function FixedSizeArray{T,N}(::UndefInitializer, size::Vararg{Int,N}) where {T,N}
1414
return FixedSizeArray(Memory{T}(undef, prod(size)), size)
1515
end
1616

0 commit comments

Comments
 (0)