diff --git a/docs/_pages/compatibility.md b/docs/_pages/compatibility.md index cb97d11..00d883e 100644 --- a/docs/_pages/compatibility.md +++ b/docs/_pages/compatibility.md @@ -127,5 +127,5 @@ We have a few behavior deviations from Lua 5.x that come from either a different * Tail calls are not supported to simplify implementation, make debugging/stack traces more predictable and allow deep validation of caller identity for security * Order of table assignment in table literals follows program order in mixed tables (Lua 5.x assigns array elements first in some cases) * Equality comparisons call `__eq` metamethod even when objects are rawequal (which matches other metamethods like `<=` and facilitates NaN checking) -* `function()` expressions may reuse a previosly created closure in certain scenarios (when all upvalues captured are the same) for efficiency, which changes object identity but doesn't change call semantics -- this is different from Lua 5.1 but similar to Lua 5.2/5.3 +* `function()` expressions may reuse a previously created closure in certain scenarios (when all upvalues captured are the same) for efficiency, which changes object identity but doesn't change call semantics -- this is different from Lua 5.1 but similar to Lua 5.2/5.3 * `os.time` returns UTC timestamp when called with a table for consistency diff --git a/docs/_pages/profile.md b/docs/_pages/profile.md index 72d1154..be05684 100644 --- a/docs/_pages/profile.md +++ b/docs/_pages/profile.md @@ -8,7 +8,7 @@ One of main goals of Luau is to enable high performance code. To help with that code is in developers' hands, and is a combination of good algorithm design and implementation that adheres to the strengths of the language. To help write efficient code, Luau provides a built-in profiler that samples the execution of the program and outputs a profiler dump that can be converted to an interactive flamegraph. -To run the profiler, make sure you have an optimized build of the intepreter (otherwise profiling results are going to be very skewed) and run it with `--profile` argument: +To run the profiler, make sure you have an optimized build of the interpreter (otherwise profiling results are going to be very skewed) and run it with `--profile` argument: ``` $ luau --profile tests/chess.lua