From d355a83ee8684ae0887b1fe9b416b47d8d91c2b8 Mon Sep 17 00:00:00 2001 From: Halalaluyafail3 <55773281+Halalaluyafail3@users.noreply.github.com> Date: Fri, 14 Jan 2022 15:48:03 -0500 Subject: [PATCH] Fix cbrt example Exponentiation has higher precedence than division. --- docs/_pages/lint.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/lint.md b/docs/_pages/lint.md index fd254b92..ff677829 100644 --- a/docs/_pages/lint.md +++ b/docs/_pages/lint.md @@ -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