Skip to content

Commit 65b379d

Browse files
committed
Address @odow comments
1 parent 8280ba7 commit 65b379d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/instantiate.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
struct OptimizerWithAttributes
3-
optimizer
3+
optimizer_constructor
44
params::Vector{Pair{AbstractOptimizerAttribute,<:Any}}
55
end
66
@@ -37,10 +37,10 @@ function OptimizerWithAttributes(optimizer_constructor, args::Vararg{Pair, N}) w
3737
end
3838

3939
const _INSTANTIATE_NOT_CALLABLE_MESSAGE =
40-
"The provided `optimizer_constructor` is invalid. It must be callable with zero" *
41-
"arguments. For example, \"Ipopt.Optimizer\" or" *
40+
"The provided `optimizer_constructor` is invalid. It must be callable with zero " *
41+
"arguments. For example, \"Ipopt.Optimizer\" or " *
4242
"\"() -> ECOS.Optimizer()\". It should not be an instantiated optimizer " *
43-
"like \"Ipopt.Optimizer()\" or \"ECOS.Optimizer()\"." *
43+
"like \"Ipopt.Optimizer()\" or \"ECOS.Optimizer()\". " *
4444
"(Note the difference in parentheses!)"
4545

4646
"""
@@ -88,7 +88,7 @@ Creates an instance of optimizer either by calling
8888
`optimizer_constructor.optimizer_constructor()` and setting the parameters in
8989
`optimizer_constructor.params` if `optimizer_constructor` is a
9090
[`OptimizerWithAttributes`](@ref) or by calling `optimizer_constructor()`
91-
if `optimizer_constructor` is function.
91+
if `optimizer_constructor` is callable.
9292
9393
If `with_bridge_type` is not `nothing`, it enables all the bridges defined in
9494
the MathOptInterface.Bridges submodule with coefficient type

0 commit comments

Comments
 (0)