Skip to content

Commit f143991

Browse files
committed
Comments style fixes
1 parent 9230a84 commit f143991

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/constraint.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function JuMP.build_constraint(
227227
return JuMP.build_constraint(_error, p - s.value, ZeroPoly(); kws...)
228228
end
229229

230-
## NonNegPoly and PosDefPolyMatrix
230+
# # `NonNegPoly` and `PosDefPolyMatrix`
231231
# The `model` is not given in `JuMP.build_constraint` so we create a custom
232232
# `Constraint` object and transform the `set` in `JuMP.add_constraint`.
233233
struct Constraint{FT,PT,ST<:PolynomialSet,KWT<:Iterators.Pairs} <:
@@ -282,7 +282,7 @@ function JuMP.add_constraint(
282282
return JuMP.add_constraint(model, new_constraint, name)
283283
end
284284

285-
# NonNegPoly
285+
# `NonNegPoly`
286286
function JuMP.build_constraint(
287287
_error::Function,
288288
p::AbstractPolynomialLike,
@@ -300,9 +300,9 @@ function JuMP.build_constraint(
300300
return JuMP.build_constraint(_error, s.upper - p, NonNegPoly(); kws...)
301301
end
302302

303-
# PosDefPolyMatrix
304-
# there is already a method for AbstractMatrix in PSDCone in JuMP so we need a
305-
# more specific here to avoid ambiguity
303+
# `PosDefPolyMatrix`
304+
# There is already a method for `AbstractMatrix` in `PSDCone` in `JuMP` so we
305+
# need a more specific here to avoid ambiguity
306306
function JuMP.build_constraint(
307307
_error::Function,
308308
p::AbstractMatrix{<:AbstractPolynomialLike},

0 commit comments

Comments
 (0)