mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
docs: Forgot a lua
syntax
This commit is contained in:
parent
0eb36fd40b
commit
1cd20c92d4
@ -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:
|
||||
|
||||
```
|
||||
```lua
|
||||
local _ = 5
|
||||
-- Placeholder value '_' is read here; consider using a named variable
|
||||
return _
|
||||
|
Loading…
Reference in New Issue
Block a user