@@ -62,15 +62,15 @@ function __constraint!(
6262 codim_f:: Union{Dimension,Nothing} = nothing ,
6363)
6464
65- # checkings : the constraint must not be set before
65+ # checks : the constraint must not be set before
6666 @ensure (
6767 ! (label ∈ keys (ocp_constraints)),
6868 CTBase. UnauthorizedCall (
6969 " the constraint named " * String (label) * " already exists."
7070 ),
7171 )
7272
73- # checkings : lb and ub cannot be both nothing
73+ # checks : lb and ub cannot be both nothing
7474 @ensure (
7575 ! (isnothing (lb) && isnothing (ub)),
7676 CTBase. UnauthorizedCall (
@@ -217,7 +217,7 @@ function constraint!(
217217 codim_f:: Union{Dimension,Nothing} = nothing ,
218218)
219219
220- # checkings : times, state and control must be set before adding constraints
220+ # checks : times, state and control must be set before adding constraints
221221 @ensure __is_state_set (ocp) CTBase. UnauthorizedCall (
222222 " the state must be set before adding constraints."
223223 )
@@ -228,7 +228,7 @@ function constraint!(
228228 " the times must be set before adding constraints."
229229 )
230230
231- # checkings : variable must be set if using type=:variable
231+ # checks : variable must be set if using type=:variable
232232 @ensure (type != :variable || __is_variable_set (ocp)) CTBase. UnauthorizedCall (
233233 " the ocp has no variable, you cannot use constraint! function with type=:variable. If it is a mistake, please set the variable first." ,
234234 )
0 commit comments