Skip to content

Commit 9a17580

Browse files
committed
outdated comment re generic projector
1 parent e99e747 commit 9a17580

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/projection.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ end
167167
(::ProjectTo{T})(dx::Integer) where {T<:Complex{<:AbstractFloat}} = convert(T, dx)
168168

169169
# Other numbers, including e.g. ForwardDiff.Dual and Symbolics.Sym, should pass through.
170-
# We assume (lacking evidence to the contrary) that it is the right subspace of numebers
171-
# The (::ProjectTo{T})(::T) method doesn't work because we are allowing a different
172-
# Number type that might not be a subtype of the `project_type`.
170+
# We assume (lacking evidence to the contrary) that it is the right subspace of numebers.
173171
(::ProjectTo{<:Number})(dx::Number) = dx
174172

175173
(project::ProjectTo{<:Real})(dx::Complex) = project(real(dx))

0 commit comments

Comments
 (0)