Skip to content

Commit bd0dbb7

Browse files
committed
shorten comment
1 parent 91de6d4 commit bd0dbb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/projection.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ const _PZ = ProjectTo{<:AbstractZero}
132132
ProjectTo{P}(::NamedTuple{T, <:Tuple{_PZ, Vararg{<:_PZ}}}) where {P,T} = ProjectTo{NoTangent}()
133133

134134
# Tangent
135-
# This may be produced from e.g. x=range(1,2,length=3). There need not be any
136-
# AbstractArray representation of such a tangent, so we just pass it along,
137-
# and trust that projection on fields before the constructor will act if necessary.
135+
# We haven't entirely figured out when to convert Tangents to "natural" representations such as
136+
# dx::AbstractArray (when both are possible), or the reverse. So for now we just pass them through:
138137
(::ProjectTo{T})(dx::Tangent{<:T}) where {T} = dx
139138

140139
#####

0 commit comments

Comments
 (0)