Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 2, 2023
1 parent f36a48a commit ae29edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ variable_ref_type(::F) where {F} = variable_ref_type(F)
function variable_ref_type(::Type{F}) where {F}
return error(
"Unable to compute the `variable_ref_type` of the type `$F`. If you " *
"are developing a JuMP extension, defined a new method for " *
"are developing a JuMP extension, define a new method for " *
"`JuMP.variable_ref_type(::Type{$F})`",
)
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,8 @@ function test_variable_ref_type_unsupported()
@test_throws(
ErrorException(
"Unable to compute the `variable_ref_type` of the type `$F`. If you " *
"are developing a JuMP extension, defined a new method for " *
"`JuMP.variable_ref_type(::Type{$F}`",
"are developing a JuMP extension, define a new method for " *
"`JuMP.variable_ref_type(::Type{$F})`",
),
variable_ref_type(F),
)
Expand Down

0 comments on commit ae29edd

Please sign in to comment.