From c1654e34ebddf36530dadbf538491efc409b7696 Mon Sep 17 00:00:00 2001 From: dcope-rbx <91100513+dcope-rbx@users.noreply.github.com> Date: Fri, 29 Oct 2021 09:48:58 -0700 Subject: [PATCH] Fixed doc issue that was unaddressed in a previous code review (#93) --- docs/_pages/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/syntax.md b/docs/_pages/syntax.md index ae526b1..e5d5a0a 100644 --- a/docs/_pages/syntax.md +++ b/docs/_pages/syntax.md @@ -203,4 +203,4 @@ Here's is an example demonstrating `elseif`: local sign = if x < 0 then -1 elseif x > 0 then 1 else 0 ``` -**Note:** In Luau, the `if-then-else` expression is preferred vs the standard Lua idiom of writing `if a and b or c` (which roughly simulates a ternary operator). However, the Lua idiom may return an unexpected result if `b` evaluates to false. The `if-then-else` expression will behave as expected in all situations. +**Note:** In Luau, the `if-then-else` expression is preferred vs the standard Lua idiom of writing `a and b or c` (which roughly simulates a ternary operator). However, the Lua idiom may return an unexpected result if `b` evaluates to false. The `if-then-else` expression will behave as expected in all situations.