Skip to content

Commit 52a976e

Browse files
author
Kristoffer Carlsson
authored
make the global _token_error_descriptions variable const (#255)
1 parent 7c16f1b commit 52a976e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kinds.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ function untokenize(k::Kind; unique=true)
10601060
end
10611061

10621062
# Error kind => description
1063-
_token_error_descriptions = Dict{Kind, String}(
1063+
const _token_error_descriptions = Dict{Kind, String}(
10641064
K"ErrorEofMultiComment" => "unterminated multi-line comment #= ... =#",
10651065
K"ErrorInvalidNumericConstant" => "invalid numeric constant",
10661066
K"ErrorHexFloatMustContainP" => "hex float literal must contain `p` or `P`",

0 commit comments

Comments
 (0)