Skip to content

Commit

Permalink
fix Vararg comment (#306)
Browse files Browse the repository at this point in the history
(I'm going through all repos indexed by Juliahub to remove deprecated Vararg{<:T)
  • Loading branch information
oscardssmith authored Nov 28, 2024
1 parent 3bab383 commit 29c1647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Convert a tuple of variables into a static vector to allow array-like usage.
The element type of the vector will be Monomial{vars, length(vars)}.
"""
Base.vec(vars::Tuple{Vararg{AbstractVariable}}) = [vars...]
# vec(vars::Tuple{Vararg{<:TypedVariable}}) = SVector(vars)
# vec(vars::Tuple{Vararg{TypedVariable}}) = SVector(vars)

# https://github.com/JuliaLang/julia/pull/23332
Base.:^(x::AbstractPolynomialLike, p::Integer) = Base.power_by_squaring(x, p)
Expand Down

0 comments on commit 29c1647

Please sign in to comment.