Fix cbrt example

Exponentiation has higher precedence than division.
This commit is contained in:
Halalaluyafail3 2022-01-14 15:48:03 -05:00 committed by GitHub
parent 32c39e2162
commit d355a83ee8
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ In some cases the linter can detect code that is never executed, because all exe
```lua
function cbrt(v)
if v >= 0 then
return v ^ 1/3
return v ^ (1/3)
else
error('cbrt expects a non-negative argument')
end