feat: freeze lex order constant table

This commit is contained in:
Erica Marigold 2024-11-11 17:09:37 +05:30 committed by GitHub
parent d2a5b28b78
commit 622a990cf8

View file

@ -164,11 +164,11 @@ export type ParseError =
Lexicographical ordering for prerelease types Lexicographical ordering for prerelease types
]=] ]=]
local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = { local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = table.freeze({
alpha = 1, alpha = 1,
beta = 2, beta = 2,
rc = 3, rc = 3,
} })
--[=[ --[=[
@within Semver @within Semver