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 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') diff --git a/_state.go b/_state.go index 960e8810..137ae73b 100644 --- a/_state.go +++ b/_state.go @@ -240,7 +240,7 @@ func freeCallFrameStackSegment(seg *callFrameStackSegment) { segmentPool.Put(seg) } -// newCallFrameStack allocates a new stack for a lua state, which will auto grow up to a max size of at least maxSize. +// newAutoGrowingCallFrameStack allocates a new stack for a lua state, which will auto grow up to a max size of at least maxSize. // it will actually grow up to the next segment size multiple after maxSize, where the segment size is dictated by // FramesPerSegment. func newAutoGrowingCallFrameStack(maxSize int) callFrameStack { diff --git a/state.go b/state.go index a1ee672e..242f2901 100644 --- a/state.go +++ b/state.go @@ -244,7 +244,7 @@ func freeCallFrameStackSegment(seg *callFrameStackSegment) { segmentPool.Put(seg) } -// newCallFrameStack allocates a new stack for a lua state, which will auto grow up to a max size of at least maxSize. +// newAutoGrowingCallFrameStack allocates a new stack for a lua state, which will auto grow up to a max size of at least maxSize. // it will actually grow up to the next segment size multiple after maxSize, where the segment size is dictated by // FramesPerSegment. func newAutoGrowingCallFrameStack(maxSize int) callFrameStack {