From 3481217e40f063373b5954912744c1c52855c90d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 11 Nov 2024 17:09:37 +0530 Subject: [PATCH] feat: freeze lex order constant table --- lib/init.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init.luau b/lib/init.luau index 15fb57e..72432c7 100644 --- a/lib/init.luau +++ b/lib/init.luau @@ -164,11 +164,11 @@ export type ParseError = Lexicographical ordering for prerelease types ]=] -local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = { +local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = table.freeze({ alpha = 1, beta = 2, rc = 3, -} +}) --[=[ @within Semver