Fix code sample in March 2022 Recap (#442)
This commit is contained in:
parent
f3ea2f96f7
commit
06bbfd90b5
|
@ -39,7 +39,7 @@ local result: Result<number, string> = ...
|
||||||
if result.type == "ok" then
|
if result.type == "ok" then
|
||||||
-- result :: Ok<number>
|
-- result :: Ok<number>
|
||||||
print(result.value)
|
print(result.value)
|
||||||
else
|
elseif result.type == "error" then
|
||||||
-- result :: Err<string>
|
-- result :: Err<string>
|
||||||
error(result.error)
|
error(result.error)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue