mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply suggestions from code review
Co-authored-by: boyned//Kampfkarren <boynedmaster@gmail.com>
This commit is contained in:
parent
13f1f117d0
commit
13f8947e38
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue