From 4f82a7739648af3dcd9b8c8067f0c4c97c063727 Mon Sep 17 00:00:00 2001 From: Ben Mactavsin <69454747+BenMactavsin@users.noreply.github.com> Date: Tue, 6 Jun 2023 18:57:36 +0300 Subject: [PATCH] Update lint.md to specify language on fenced code blocks which have none (#946) Specified language on the last two fenced code blocks in the page as they were inconsistent with the others on the same page. --- docs/_pages/lint.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_pages/lint.md b/docs/_pages/lint.md index 681a275..49d4465 100644 --- a/docs/_pages/lint.md +++ b/docs/_pages/lint.md @@ -331,7 +331,7 @@ Luau uses comments that start from `!` to control certain aspects of analysis, f Luau parses hexadecimal and binary literals as 64-bit integers before converting them to Luau numbers. As a result, numbers that exceed 2^64 are silently truncated to 2^64, which can result in unexpected program behavior. This warning flags literals that are truncated: -``` +```lua -- Hexadecimal number literal exceeded available precision and has been truncated to 2^64 local x = 0x1111111111111111111111111111111111111 ``` @@ -340,7 +340,7 @@ local x = 0x1111111111111111111111111111111111111 Because of operator precedence rules, not X == Y parses as (not X) == Y; however, often the intent was to invert the result of the comparison. This warning flags erroneous conditions like that, as well as flagging cases where two comparisons happen in a row without any parentheses: -``` +```lua -- not X == Y is equivalent to (not X) == Y; consider using X ~= Y, or wrap one of the expressions in parentheses to silence if not x == 5 then end