From 399ce62917a3f67d8a1a26e29fbc1e9e95d02798 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Sun, 26 May 2024 12:33:01 +1200 Subject: [PATCH] Apply suggestions from code review --- src/Containers/macro.jl | 2 +- test/test_macros.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Containers/macro.jl b/src/Containers/macro.jl index 582aa518a63..b20c6a76743 100644 --- a/src/Containers/macro.jl +++ b/src/Containers/macro.jl @@ -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 diff --git a/test/test_macros.jl b/test/test_macros.jl index 219170e7732..d1a7f8dd9e3 100644 --- a/test/test_macros.jl +++ b/test/test_macros.jl @@ -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]),