From 5368f6ab26dc8d45c6e6c915235cf09aed1d4cad Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 08:57:33 -0400 Subject: [PATCH 01/23] spelling: access Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/api.lua | 2 +- _lua5.1-tests/db.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_lua5.1-tests/api.lua b/_lua5.1-tests/api.lua index c2d262f0..c1af5360 100644 --- a/_lua5.1-tests/api.lua +++ b/_lua5.1-tests/api.lua @@ -333,7 +333,7 @@ F = function (x) if A ~= nil then assert(type(A) == "userdata") assert(T.udataval(A) == B) - debug.getmetatable(A) -- just acess it + debug.getmetatable(A) -- just access it end A = x -- ressucita userdata B = udval diff --git a/_lua5.1-tests/db.lua b/_lua5.1-tests/db.lua index 09496f6f..8ab072a3 100644 --- a/_lua5.1-tests/db.lua +++ b/_lua5.1-tests/db.lua @@ -472,7 +472,7 @@ t[1] = "'error'" checktraceback(co, t) --- test acessing line numbers of a coroutine from a resume inside +-- test accessing line numbers of a coroutine from a resume inside -- a C function (this is a known bug in Lua 5.0) local function g(x) From a6ca76e5e9f773dec0203ff24af34f9805c0c237 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 08:57:47 -0400 Subject: [PATCH 02/23] spelling: alignment Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/api.lua b/_lua5.1-tests/api.lua index c1af5360..a10f9ee9 100644 --- a/_lua5.1-tests/api.lua +++ b/_lua5.1-tests/api.lua @@ -17,7 +17,7 @@ function pack(...) return arg end print('testing C API') --- testing allignment +-- testing alignment a = T.d2s(12458954321123) assert(string.len(a) == 8) -- sizeof(double) assert(T.s2d(a) == 12458954321123) From bd182b3d3d12b21ccbfd757167d9e7bfe6b96305 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:18:40 -0400 Subject: [PATCH 03/23] spelling: captured Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pm/pm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm/pm.go b/pm/pm.go index e5c651f9..626e81ab 100644 --- a/pm/pm.go +++ b/pm/pm.go @@ -40,7 +40,7 @@ func (e *Error) Error() string { type MatchData struct { // captured positions // layout - // xxxx xxxx xxxx xxx0 : caputured positions + // xxxx xxxx xxxx xxx0 : captured positions // xxxx xxxx xxxx xxx1 : position captured positions captures []uint32 } From 936710573f61a77d049259aec06b5961e50b06c3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:18:57 -0400 Subject: [PATCH 04/23] spelling: collect Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/api.lua b/_lua5.1-tests/api.lua index a10f9ee9..86c23212 100644 --- a/_lua5.1-tests/api.lua +++ b/_lua5.1-tests/api.lua @@ -315,7 +315,7 @@ collectgarbage() assert(type(T.getref(a)) == 'table') --- colect in cl the `val' of all collected userdata +-- collect in cl the `val' of all collected userdata tt = {} cl = {n=0} A = nil; B = nil From 574901d1fd97112d3c5161bedbce08aa4bc7a91f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:19:07 -0400 Subject: [PATCH 05/23] spelling: conversions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/math.lua b/_lua5.1-tests/math.lua index 21429a6f..99098e0e 100644 --- a/_lua5.1-tests/math.lua +++ b/_lua5.1-tests/math.lua @@ -166,7 +166,7 @@ stat(a) a = nil --- testing implicit convertions +-- testing implicit conversions local a,b = '10', '20' assert(a*b == 200 and a+b == 30 and a-b == -10 and a/b == 0.5 and -b == -20) From 432a701783fc6c24a0c0ef45d9728928f00c4bb9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:20:10 -0400 Subject: [PATCH 06/23] spelling: coroutine Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _state.go | 2 +- state.go | 2 +- state_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_state.go b/_state.go index 645589fe..27f0cbad 100644 --- a/_state.go +++ b/_state.go @@ -742,7 +742,7 @@ func (ls *LState) frameFuncName(fr *callFrame) (string, bool) { if ls.Parent == nil { return "main chunk", true } else { - return "corountine", true + return "coroutine", true } } if !frame.Fn.IsG { diff --git a/state.go b/state.go index 50e70ed6..78d958bf 100644 --- a/state.go +++ b/state.go @@ -788,7 +788,7 @@ func (ls *LState) frameFuncName(fr *callFrame) (string, bool) { if ls.Parent == nil { return "main chunk", true } else { - return "corountine", true + return "coroutine", true } } if !frame.Fn.IsG { diff --git a/state_test.go b/state_test.go index bfe93b93..b6eded48 100644 --- a/state_test.go +++ b/state_test.go @@ -422,7 +422,7 @@ func TestContextCancel(t *testing.T) { errorIfFalse(t, strings.Contains(err.Error(), "context canceled"), "execution must be canceled") } -func TestContextWithCroutine(t *testing.T) { +func TestContextWithCoroutine(t *testing.T) { L := NewState() defer L.Close() ctx, cancel := context.WithCancel(context.Background()) From 19ad7813969b2081d87f7073da14e06e49878f4b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:20:16 -0400 Subject: [PATCH 07/23] spelling: coroutines Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/closure.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/closure.lua b/_lua5.1-tests/closure.lua index f01ad6ff..a90ed252 100644 --- a/_lua5.1-tests/closure.lua +++ b/_lua5.1-tests/closure.lua @@ -313,7 +313,7 @@ end assert(a == 5^4) --- access to locals of collected corroutines +-- access to locals of collected coroutines --[[ local C = {}; setmetatable(C, {__mode = "kv"}) local x = coroutine.wrap (function () From d32024116ad4cfbb24c64f0506437f132db54668 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:05:52 -0400 Subject: [PATCH 08/23] spelling: data Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- script_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script_test.go b/script_test.go index 3c0675d6..900e6f89 100644 --- a/script_test.go +++ b/script_test.go @@ -84,17 +84,17 @@ func testScriptDir(t *testing.T, tests []string, directory string) { } } -var numActiveUserDatas int32 = 0 +var numActiveUserData int32 = 0 type finalizerStub struct{ x byte } func allocFinalizerUserData(L *LState) int { ud := L.NewUserData() - atomic.AddInt32(&numActiveUserDatas, 1) + atomic.AddInt32(&numActiveUserData, 1) a := finalizerStub{} ud.Value = &a runtime.SetFinalizer(&a, func(aa *finalizerStub) { - atomic.AddInt32(&numActiveUserDatas, -1) + atomic.AddInt32(&numActiveUserData, -1) }) L.Push(ud) return 1 @@ -106,11 +106,11 @@ func sleep(L *LState) int { } func countFinalizers(L *LState) int { - L.Push(LNumber(numActiveUserDatas)) + L.Push(LNumber(numActiveUserData)) return 1 } -// TestLocalVarFree verifies that tables and user user datas which are no longer referenced by the lua script are +// TestLocalVarFree verifies that tables and user user data which are no longer referenced by the lua script are // correctly gc-ed. There was a bug in gopher lua where local vars were not being gc-ed in all circumstances. func TestLocalVarFree(t *testing.T) { s := ` @@ -127,7 +127,7 @@ func TestLocalVarFree(t *testing.T) { end sleep(100) end - error("user datas not finalized after 100 gcs") + error("user data not finalized after 100 gcs") ` L := NewState() L.SetGlobal("allocFinalizer", L.NewFunction(allocFinalizerUserData)) From f9a6e1ca8224a934aee84f85eced15390a57b18b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:20:47 -0400 Subject: [PATCH 09/23] spelling: dispatch Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.go b/compile.go index c3736777..01b2c693 100644 --- a/compile.go +++ b/compile.go @@ -1827,7 +1827,7 @@ func patchCode(context *funcContext) { // {{{ } } - // bulk move optimization(reducing op dipatch costs) + // bulk move optimization(reducing op dispatch costs) if curop == OP_MOVE { moven++ } else { From 762cbb9edcdbfe00da50405eeb947c60d2ae9382 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:21:17 -0400 Subject: [PATCH 10/23] spelling: expected Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- iolib.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iolib.go b/iolib.go index b59e82b2..b19cac9a 100644 --- a/iolib.go +++ b/iolib.go @@ -558,7 +558,7 @@ func ioInput(L *LState) int { } } - L.ArgError(1, "string or file expedted, but got "+L.Get(1).Type().String()) + L.ArgError(1, "string or file expected, but got "+L.Get(1).Type().String()) return 0 } @@ -735,7 +735,7 @@ func ioOutput(L *LState) int { } } - L.ArgError(1, "string or file expedted, but got "+L.Get(1).Type().String()) + L.ArgError(1, "string or file expected, but got "+L.Get(1).Type().String()) return 0 } From 9ae10f579b5cb6ba4a93de72bb2081e224473627 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:21:48 -0400 Subject: [PATCH 11/23] spelling: fields Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/locals.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/locals.lua b/_lua5.1-tests/locals.lua index b0fc556f..39c3dd31 100644 --- a/_lua5.1-tests/locals.lua +++ b/_lua5.1-tests/locals.lua @@ -115,7 +115,7 @@ if rawget(_G, "querytab") then local t = querytab(a) for k,_ in pairs(a) do a[k] = nil end - collectgarbage() -- restore GC and collect dead fiels in `a' + collectgarbage() -- restore GC and collect dead fields in `a' for i=0,t-1 do local k = querytab(a, i) assert(k == nil or type(k) == 'number' or k == 'alo') From 0c58fb0528da36b3a4a54d799ed4b322a9018064 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:22:13 -0400 Subject: [PATCH 12/23] spelling: functioncall Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- parse/parser.go.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/parser.go.y b/parse/parser.go.y index 52bcd55f..b4a70f4f 100644 --- a/parse/parser.go.y +++ b/parse/parser.go.y @@ -110,7 +110,7 @@ stat: $$ = &ast.AssignStmt{Lhs: $1, Rhs: $3} $$.SetLine($1[0].Line()) } | - /* 'stat = functioncal' causes a reduce/reduce conflict */ + /* 'stat = functioncall' causes a reduce/reduce conflict */ prefixexp { if _, ok := $1.(*ast.FuncCallExpr); !ok { yylex.(*Lexer).Error("parse error") From e459c4480b8ed63ce16e7379f0d9e87f94090a8d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:22:27 -0400 Subject: [PATCH 13/23] spelling: generate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index eb2dc91e..02d4c99e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -3,7 +3,7 @@ Any kind of contributions are welcome. ## Building GopherLua -GopherLua uses simple inlining tool for generate efficient codes. This tool requires python interpreter. Files name of which starts with `_` genarate files name of which does not starts with `_` . For instance, `_state.go` generate `state.go` . You do not edit generated sources. +GopherLua uses simple inlining tool for generate efficient codes. This tool requires python interpreter. Files name of which starts with `_` generate files name of which does not starts with `_` . For instance, `_state.go` generate `state.go` . You do not edit generated sources. To generate sources, some make target is available. ```bash From 0f638cee68a17ee5eea78f66ea4181776ff998ff Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:24:44 -0400 Subject: [PATCH 14/23] spelling: guidelines Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index cc936311..89a9e881 100644 --- a/README.rst +++ b/README.rst @@ -847,7 +847,7 @@ Lua has an interpreter called ``lua`` . GopherLua has an interpreter called ``gl ---------------------------------------------------------------- How to Contribute ---------------------------------------------------------------- -See `Guidlines for contributors `_ . +See `Guidelines for contributors `_ . ---------------------------------------------------------------- Libraries for GopherLua From af9f288e16134e636422e7854292ddbc8c713880 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:25:12 -0400 Subject: [PATCH 15/23] spelling: indices Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- parse/lexer.go | 12 ++++++------ stringlib.go | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/parse/lexer.go b/parse/lexer.go index c20a0bdd..b63eef23 100644 --- a/parse/lexer.go +++ b/parse/lexer.go @@ -510,23 +510,23 @@ func dump(node interface{}, level int, s string) string { case reflect.Ptr: vt := rv.Elem() tt := rt.Elem() - indicies := []int{} + indices := []int{} for i := 0; i < tt.NumField(); i++ { if strings.Index(tt.Field(i).Name, "Base") > -1 { continue } - indicies = append(indicies, i) + indices = append(indices, i) } switch { - case len(indicies) == 0: + case len(indices) == 0: return strings.Repeat(s, level) + "" - case len(indicies) == 1 && isInlineDumpNode(vt.Field(indicies[0])): - for _, i := range indicies { + case len(indices) == 1 && isInlineDumpNode(vt.Field(indices[0])): + for _, i := range indices { buf = append(buf, strings.Repeat(s, level)+"- Node$"+tt.Name()+": "+dump(vt.Field(i).Interface(), 0, s)) } default: buf = append(buf, strings.Repeat(s, level)+"- Node$"+tt.Name()) - for _, i := range indicies { + for _, i := range indices { if isInlineDumpNode(vt.Field(i)) { inf := dump(vt.Field(i).Interface(), 0, s) buf = append(buf, strings.Repeat(s, level+1)+tt.Field(i).Name+": "+inf) diff --git a/stringlib.go b/stringlib.go index f484c2b3..123edde4 100644 --- a/stringlib.go +++ b/stringlib.go @@ -174,8 +174,8 @@ func strGsub(L *LState) int { } type replaceInfo struct { - Indicies []int - String string + Indices []int + String string } func checkCaptureIndex(L *LState, m *pm.MatchData, idx int) { @@ -205,9 +205,9 @@ func strGsubDoReplace(str string, info []replaceInfo) string { buf := []byte(str) for _, replace := range info { oldlen := len(buf) - b1 := append([]byte(""), buf[0:offset+replace.Indicies[0]]...) + b1 := append([]byte(""), buf[0:offset+replace.Indices[0]]...) b2 := []byte("") - index2 := offset + replace.Indicies[1] + index2 := offset + replace.Indices[1] if index2 <= len(buf) { b2 = append(b2, buf[index2:len(buf)]...) } From cd9104f11aab2b97c326edf1c22b55607d4b927c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:28:51 -0400 Subject: [PATCH 16/23] spelling: middle Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/pm.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_lua5.1-tests/pm.lua b/_lua5.1-tests/pm.lua index 85b03846..830ec903 100644 --- a/_lua5.1-tests/pm.lua +++ b/_lua5.1-tests/pm.lua @@ -19,9 +19,9 @@ a,b = string.find('alo', '') assert(a == 1 and b == 0) a,b = string.find('a\0o a\0o a\0o', 'a', 1) -- first position assert(a == 1 and b == 1) -a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the midle +a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the middle assert(a == 5 and b == 7) -a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the midle +a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the middle assert(a == 9 and b == 11) a,b = string.find('a\0a\0a\0a\0\0ab', '\0ab', 2); -- finds at the end assert(a == 9 and b == 11); From 40c8f07424ff58729218442880a6cf28a38b25de Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:29:39 -0400 Subject: [PATCH 17/23] spelling: options Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- iolib.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iolib.go b/iolib.go index b19cac9a..6a59e637 100644 --- a/iolib.go +++ b/iolib.go @@ -613,7 +613,7 @@ func ioLines(L *LState) int { return 1 } -var ioOpenOpions = []string{"r", "rb", "w", "wb", "a", "ab", "r+", "rb+", "w+", "wb+", "a+", "ab+"} +var ioOpenOptions = []string{"r", "rb", "w", "wb", "a", "ab", "r+", "rb+", "w+", "wb+", "a+", "ab+"} func ioOpenFile(L *LState) int { path := L.CheckString(1) @@ -624,7 +624,7 @@ func ioOpenFile(L *LState) int { perm := 0600 writable := true readable := true - switch ioOpenOpions[L.CheckOption(2, ioOpenOpions)] { + switch ioOpenOptions[L.CheckOption(2, ioOpenOptions)] { case "r", "rb": mode = os.O_RDONLY writable = false From 1e501bbce8e59a7dc636112d5fd7369090983a4f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:33:25 -0400 Subject: [PATCH 18/23] spelling: propagated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- state_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state_test.go b/state_test.go index b6eded48..df3e12c7 100644 --- a/state_test.go +++ b/state_test.go @@ -469,7 +469,7 @@ func TestPCallAfterFail(t *testing.T) { }) L.Push(changeError) err := L.PCall(0, 0, nil) - errorIfFalse(t, strings.Contains(err.Error(), "A New Error"), "error not propogated correctly") + errorIfFalse(t, strings.Contains(err.Error(), "A New Error"), "error not propagated correctly") } func TestRegistryFixedOverflow(t *testing.T) { From ed9daabd41a6fa25dd24e5caeacd69c41be404f4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:34:06 -0400 Subject: [PATCH 19/23] spelling: resurrect Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/gc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/gc.lua b/_lua5.1-tests/gc.lua index 86a9f758..a33b4940 100644 --- a/_lua5.1-tests/gc.lua +++ b/_lua5.1-tests/gc.lua @@ -295,7 +295,7 @@ do assert(getmetatable(o) == tt) -- create new objects during GC local a = 'xuxu'..(10+3)..'joao', {} - ___Glob = o -- ressurect object! + ___Glob = o -- resurrect object! newproxy(o) -- creates a new one with same metatable print(">>> closing state " .. "<<<\n") end From 7899b24e232e499278d5a6096845e0c37a2605ae Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:42:19 -0400 Subject: [PATCH 20/23] spelling: update Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/api.lua b/_lua5.1-tests/api.lua index 86c23212..2e8c5f04 100644 --- a/_lua5.1-tests/api.lua +++ b/_lua5.1-tests/api.lua @@ -341,7 +341,7 @@ F = function (x) end tt.__gc = F --- test whether udate collection frees memory in the right time +-- test whether update collection frees memory in the right time do collectgarbage(); collectgarbage(); From 11e4cf566df5db56f5f97762d350e7dc177b4975 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:42:40 -0400 Subject: [PATCH 21/23] spelling: useful Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 89a9e881..6560dc13 100644 --- a/README.rst +++ b/README.rst @@ -868,7 +868,7 @@ Libraries for GopherLua - `gluacrypto `_ : A native Go implementation of crypto library for the GopherLua VM. - `gluasql `_ : A native Go implementation of SQL client for the GopherLua VM. - `purr `_ : A http mock testing tool. -- `vadv/gopher-lua-libs `_ : Some usefull libraries for GopherLua VM. +- `vadv/gopher-lua-libs `_ : Some useful libraries for GopherLua VM. - `gluaperiphery `_ : A periphery library for the GopherLua VM (GPIO, SPI, I2C, MMIO, and Serial peripheral I/O for Linux). - `glua-async `_ : An async/await implement for gopher-lua. - `gopherlua-debugger `_ : A debugger for gopher-lua From f189fe137dd2286c76789b88db03e080332fd0e6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:06:09 -0400 Subject: [PATCH 22/23] spelling: user Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- script_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script_test.go b/script_test.go index 900e6f89..b928acc8 100644 --- a/script_test.go +++ b/script_test.go @@ -110,7 +110,7 @@ func countFinalizers(L *LState) int { return 1 } -// TestLocalVarFree verifies that tables and user user data which are no longer referenced by the lua script are +// TestLocalVarFree verifies that tables and user data which are no longer referenced by the lua script are // correctly gc-ed. There was a bug in gopher lua where local vars were not being gc-ed in all circumstances. func TestLocalVarFree(t *testing.T) { s := ` From 71249889f9b461029cee6f1a10e835560e380617 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:42:59 -0400 Subject: [PATCH 23/23] spelling: welcome Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- _lua5.1-tests/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_lua5.1-tests/README b/_lua5.1-tests/README index e2d4b285..34b5b028 100644 --- a/_lua5.1-tests/README +++ b/_lua5.1-tests/README @@ -1,7 +1,7 @@ This tarball contains the official test scripts for Lua 5.1. Unlike Lua itself, these tests do not aim portability, small footprint, or easy of use. (Their main goal is to try to crash Lua.) They are not -intended for general use. You are wellcome to use them, but expect to +intended for general use. You are welcome to use them, but expect to have to "dirt your hands". The tarball should expand in the following contents: