Skip to content

Commit c9fb55a

Browse files
committed
Update comment
1 parent a61d05b commit c9fb55a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stage1/recurse_fwd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function (::∂☆new{N})(B::Type, xs::AbstractTangentBundle{N}...) where {N}
3535
tangent = if B<:Tuple
3636
Tangent{B, typeof(tangent_tup)}(tangent_tup)
3737
else
38-
# It is a little dubious using StructuralTangent{B} for >1st order, but it is isomorphic.
39-
# Just watch out for order mixing bugs.
38+
# No matter the order we use `StructuralTangent{B}` for the partial
39+
# It follows all required properties of the tangent to the n-1th order tangent
4040
names = fieldnames(B)
4141
tangent_nt = NamedTuple{names}(tangent_tup)
4242
StructuralTangent{B}(tangent_nt)

0 commit comments

Comments
 (0)