Fix code sample in March 2022 Recap (#442)

This commit is contained in:
Alan Jeffrey 2022-03-31 09:31:06 -05:00 committed by GitHub
parent f3ea2f96f7
commit 06bbfd90b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ local result: Result<number, string> = ...
if result.type == "ok" then
-- result :: Ok<number>
print(result.value)
else
elseif result.type == "error" then
-- result :: Err<string>
error(result.error)
end