diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-09-15 18:20:15 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-09-15 18:20:15 +0800 |
| commit | 55149f8864c6c3e1c1fff9268384f8302dc5488d (patch) | |
| tree | 83dcb6ce5d1eb17294ec9032e807d1ad0120d008 /spec/outputs/codes_from_doc_zh.lua | |
| parent | f7269a635e31e075c45ec9d10e4c1df5cf9f8a33 (diff) | |
| download | yuescript-55149f8864c6c3e1c1fff9268384f8302dc5488d.tar.gz yuescript-55149f8864c6c3e1c1fff9268384f8302dc5488d.tar.bz2 yuescript-55149f8864c6c3e1c1fff9268384f8302dc5488d.zip | |
Fixed issue for reversed indexing.
Diffstat (limited to 'spec/outputs/codes_from_doc_zh.lua')
| -rw-r--r-- | spec/outputs/codes_from_doc_zh.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index de76829..e70c20c 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua | |||
| @@ -225,6 +225,8 @@ do | |||
| 225 | local _item_0 = data.items | 225 | local _item_0 = data.items |
| 226 | second_last = _item_0[#_item_0 - 1] | 226 | second_last = _item_0[#_item_0 - 1] |
| 227 | end | 227 | end |
| 228 | local _obj_0 = data.items | ||
| 229 | _obj_0[#_obj_0] = 1 | ||
| 228 | local mt = { } | 230 | local mt = { } |
| 229 | local add | 231 | local add |
| 230 | add = function(self, right) | 232 | add = function(self, right) |
| @@ -2658,6 +2660,8 @@ do | |||
| 2658 | local _item_0 = data.items | 2660 | local _item_0 = data.items |
| 2659 | second_last = _item_0[#_item_0 - 1] | 2661 | second_last = _item_0[#_item_0 - 1] |
| 2660 | end | 2662 | end |
| 2663 | local _obj_0 = data.items | ||
| 2664 | _obj_0[#_obj_0] = 1 | ||
| 2661 | local mt = { } | 2665 | local mt = { } |
| 2662 | local add | 2666 | local add |
| 2663 | add = function(self, right) | 2667 | add = function(self, right) |
