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 May 26, 2024
1 parent 5f172d8 commit 399ce62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Containers/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function _parse_ref_sets(error_fn::Function, expr::Expr)
if !(name isa Symbol)
error_fn(
"Unsupported syntax: the expression `$name` cannot be used " *
"as a name."
"as a name.",
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ function test_unsupported_name_syntax_multiple_ref()
model = Model()
@test_throws_parsetime(
ErrorException(
"In `@variable(model, x[1:1][1:2])`: Unsupported syntax: " *
"In `@variable(model, (x[1:1])[1:2])`: Unsupported syntax: " *
"the expression `x[1:1]` cannot be used as a name.",
),
@variable(model, x[1:1][1:2]),
Expand Down

0 comments on commit 399ce62

Please sign in to comment.