Skip to content

Commit b24fe07

Browse files
Kristoffer Carlssonc42f
authored andcommitted
make the global _token_error_descriptions variable const (#255)
1 parent 2ec5453 commit b24fe07

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
@@ -1062,7 +1062,7 @@ function untokenize(k::Kind; unique=true)
10621062
end
10631063

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

0 commit comments

Comments
 (0)