Skip to content

Commit

Permalink
docs: fix some errors in the pre-allocate table (#10695)
Browse files Browse the repository at this point in the history
Co-authored-by: baiyun <baiyun@sinovatech.com>
  • Loading branch information
smileby and baiyun authored Dec 22, 2023
1 parent c7d406d commit 94e4abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CODE_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ end
```lua
--Yes
local new_tab = require "table.new"
local t = new_tab(100, 0)
local t = new_tab(100000, 0)
for i = 1, 100000 do
t[i] = "a"
end
Expand Down

0 comments on commit 94e4abd

Please sign in to comment.