Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: use correct comparator in for loop No functional change -- the same Lua code is emitted due to an error in `tstolua`, but the code is now correct in the TypeScript. * fix: modify for loop to match intentions The local _repeat function is meant to repeat a string N times, so adjust the loop limits appropriately to do that. This is a small functional change where previously due to an error in codegen by `tstolua`, `_repeat(s, 1)` would return `s + s` instead of just `s`, even though the TypeScript was correct. However, the exported function `printRepeat` is only used in an unused `toString` method of the `SimulationCraft` class, so there is no functional impact.
- Loading branch information