From 43f5b7867c8c2ec383ed2b30da84cdc634656998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 5 Jun 2026 16:39:14 +0100 Subject: [PATCH] Fix typos in comments --- src/Utilities/vector_of_constraints.jl | 2 +- src/functions.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utilities/vector_of_constraints.jl b/src/Utilities/vector_of_constraints.jl index b12b97bd85..ab8f0dab0c 100644 --- a/src/Utilities/vector_of_constraints.jl +++ b/src/Utilities/vector_of_constraints.jl @@ -73,7 +73,7 @@ function MOI.add_constraint( ) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet} # We canonicalize the constraint so that solvers can avoid having to # canonicalize it most of the time (they can check if they need to with - # `is_canonical`. + # `is_canonical`). # Note that the canonicalization is not guaranteed if for instance # `modify` is called and adds a new term. # See https://github.com/jump-dev/MathOptInterface.jl/pull/1118 diff --git a/src/functions.jl b/src/functions.jl index b8058a5cb5..61a1d76886 100644 --- a/src/functions.jl +++ b/src/functions.jl @@ -360,7 +360,7 @@ function Base.copy(f::ScalarNonlinearFunction) # We need some sort of hint so that the next time we see this on the # stack we evaluate it using the args in `result_stack`. One option # would be a custom type. Or we can just wrap in (,) and then check - # for a Tuple, which isn't (curretly) a valid argument. + # for a Tuple, which isn't (currently) a valid argument. push!(stack, (arg,)) for child in arg.args push!(stack, child)