Skip to content

Commit

Permalink
Update optimizer_interface.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 8, 2024
1 parent a0d67eb commit 71176c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/optimizer_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,8 @@ end
# Some MOI attributes have a strict value type, like ::String or ::Float64, but
# users may pass other generic subtypes, like SubString instead of String.
# Rather than throw obtuse errors, we can catch and fix some common cases. We
# shouldn't fix every case (e.g., AbstractString -> String) because users might
# intentionally want the other subtype.
# shouldn't fix every case (for example, AbstractString -> String) because
# users might intentionally want the other subtype.
#
# The default case is to do nothing:
_to_concrete_value_type_if_needed(::MOI.AnyAttribute, value) = value
Expand Down

0 comments on commit 71176c0

Please sign in to comment.