Apply suggestions from code review

Co-authored-by: boyned//Kampfkarren <boynedmaster@gmail.com>
This commit is contained in:
Alan Jeffrey 2022-04-12 18:10:06 -05:00 committed by GitHub
parent 13f1f117d0
commit 13f8947e38
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,10 @@ For example, the function:
```lua ```lua
function succ(x) function succ(x)
if type(x) == "function" if type(x) == "function" then
return x() + 1 return x() + 1
else else
assert(type(x) == number) assert(type(x) == "number")
return x + 1 return x + 1
end end
end end