Skip to content

Commit 59948e5

Browse files
Move deprecated Vararg UnionAll outside (#493)
* Move deprecated Vararg UnionAll outside * Update src/projection.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update src/projection.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 38c4089 commit 59948e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ProjectTo(::AbstractZero) = ProjectTo{NoTangent}() # Any x::Zero in forward pas
131131
# Also, any explicit construction with fields, where all fields project to zero, itself
132132
# projects to zero. This simplifies projectors for wrapper types like Diagonal([true, false]).
133133
const _PZ = ProjectTo{<:AbstractZero}
134-
const _PZ_Tuple = Tuple{_PZ,Vararg{<:_PZ}} # 1 or more ProjectTo{<:AbstractZeros}
134+
const _PZ_Tuple = Tuple{_PZ,Vararg{_PZ}} # 1 or more ProjectTo{<:AbstractZeros}
135135
function ProjectTo{P}(::NamedTuple{T,<:_PZ_Tuple}) where {P,T}
136136
return ProjectTo{NoTangent}()
137137
end

0 commit comments

Comments
 (0)