Skip to content

Commit 209d344

Browse files
musmJeffBezanson
authored andcommitted
Use new where syntax for a couple of misc methods (#21415)
* Use new where syntax for eltype * New where syntax for some size methods * New where syntax for copy mehods
1 parent cc3759d commit 209d344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractFFTs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ abstract type Plan{T} end
88
import Base: show, summary, size, ndims, length, eltype,
99
*, A_mul_B!, inv, \, A_ldiv_B!
1010

11-
eltype{T}(::Type{Plan{T}}) = T
11+
eltype(::Type{Plan{T}}) where {T} = T
1212

1313
# size(p) should return the size of the input array for p
1414
size(p::Plan, d) = size(p)[d]

0 commit comments

Comments
 (0)