Fixed line breaks that were implied

This commit is contained in:
Vyacheslav Egorov 2022-06-01 16:56:46 +03:00
parent d272553f0f
commit 1ef901c5e4

View file

@ -9,7 +9,7 @@ This month Luau team has worked to bring you a new language feature together wit
## Generalized iteration
We have extended the semantics of standard Lua syntax for iterating through containers, `for vars in values` with support for generalized iteration.
We have extended the semantics of standard Lua syntax for iterating through containers, `for vars in values` with support for generalized iteration.
In Lua, to iterate over a table you need to use an iterator like `next` or a function that returns one like `pairs` or `ipairs`. In Luau, you can now simply iterate over a table:
```lua
@ -29,7 +29,7 @@ for k, v in obj do
end
```
The default iteration order for tables is specified to be consecutive for elements `1..#t` and unordered after that, visiting every element.
The default iteration order for tables is specified to be consecutive for elements `1..#t` and unordered after that, visiting every element.
Similar to iteration using `pairs`, modifying the table entries for keys other than the current one results in unspecified behavior.
## Typechecking improvements
@ -96,5 +96,5 @@ end
Garbage collection CPU utilization has been tuned to further reduce frame time spikes of individual collection steps and to bring different GC stages to the same level of CPU utilization.
In open-source release of Luau, when optimization level 2 is enabled, compiler will now perform function inlining.
In open-source release of Luau, when optimization level 2 is enabled, compiler will now perform function inlining.
Loop unrolling in optimization level 2 has also been improved to handle all language constructs inside the loop body.