Skip to content

Commit 3e34d4c

Browse files
authored
[docs] fix docstring of ScalarAffineFunction (#2326)
1 parent 67085f1 commit 3e34d4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/functions.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ term_pair(t::ScalarAffineTerm) = term_indices(t) => coefficient(t)
108108
# See https://github.com/jump-dev/MathOptInterface.jl/pull/343.
109109

110110
"""
111-
ScalarAffineFunction{T}(terms::ScalarAffineTerm{T}, constant::T) where {T}
111+
ScalarAffineFunction{T}(
112+
terms::Vector{ScalarAffineTerm{T}},
113+
constant::T,
114+
) where {T}
112115
113116
Represents the scalar-valued affine function ``a^\\top x + b``, where:
114117

0 commit comments

Comments
 (0)