Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ end

"""
submit(optimizer::AbstractOptimizer, sub::AbstractSubmittable,
value)::Nothing
values...)::Nothing

Submit `value` to the submittable `sub` of the optimizer `optimizer`.
Submit `values` to the submittable `sub` of the optimizer `optimizer`.

An [`UnsupportedSubmittable`](@ref) error is thrown if `model` does not support
the attribute `attr` (see [`supports`](@ref)) and a [`SubmitNotAllowed`](@ref)
Expand All @@ -388,7 +388,7 @@ error is thrown if it supports the submittable `sub` but it cannot be submitted.
function submit end
function submit(model::ModelLike, sub::AbstractSubmittable, args...)
if supports(model, sub)
throw(SubmitNotAllowed(sub))
throw(MethodError(submit, (model, sub, args...)))
else
throw(UnsupportedSubmittable(sub))
end
Expand Down