docs: Forgot a lua syntax

This commit is contained in:
Arseny Kapoulkine 2020-06-11 22:19:03 -07:00
parent 0eb36fd40b
commit 1cd20c92d4

View File

@ -140,7 +140,7 @@ PlaceholderRead (11)
`_` variable name is commonly used as a placeholder to discard function results. The linter follows this convention and doesn't warn about the use of `_` in various cases where a different name would cause a warning otherwise. To make sure the placeholder is only used to write values to it, this warning detects the cases where it's read instead: `_` variable name is commonly used as a placeholder to discard function results. The linter follows this convention and doesn't warn about the use of `_` in various cases where a different name would cause a warning otherwise. To make sure the placeholder is only used to write values to it, this warning detects the cases where it's read instead:
``` ```lua
local _ = 5 local _ = 5
-- Placeholder value '_' is read here; consider using a named variable -- Placeholder value '_' is read here; consider using a named variable
return _ return _