mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update docs/syntax-attribute-functions-deprecated.md
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
This commit is contained in:
parent
846e4d10fe
commit
ef386723f2
1 changed files with 4 additions and 2 deletions
|
@ -29,8 +29,10 @@ If `foo` is a member of class `bar`, the warning messages above will start as `"
|
|||
Consider the following example. Function `printTable` is marked deprecated.
|
||||
|
||||
```lua
|
||||
@[deprecated {use = "table.foreach(table, print)",
|
||||
reason = "`printTable` forces tables to be printed in one style; `table.foreach` allows configurable printing."}]
|
||||
@[deprecated {
|
||||
use = "table.foreach(table, print)",
|
||||
reason = "`printTable` forces tables to be printed in one style; `table.foreach` allows configurable printing.",
|
||||
}]
|
||||
local function printTable(t)
|
||||
for k,v in pairs(t) do
|
||||
print(k, v)
|
||||
|
|
Loading…
Add table
Reference in a new issue