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
|
||||
-- result :: Ok<number>
|
||||
print(result.value)
|
||||
else
|
||||
elseif result.type == "error" then
|
||||
-- result :: Err<string>
|
||||
error(result.error)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue