From 2b753293a0e9266e5ccc54e07073a66a220a6a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 13 Mar 2024 11:37:11 +0000 Subject: [PATCH 1/2] Fix typos in 2 comments --- table.go | 2 +- value.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/table.go b/table.go index ddf14dd8..a8cc6712 100644 --- a/table.go +++ b/table.go @@ -291,7 +291,7 @@ func (tb *LTable) RawGetInt(key int) LValue { return tb.array[index] } -// RawGet returns an LValue associated with a given key without __index metamethod. +// RawGetH returns an LValue associated with a given key without __index metamethod. func (tb *LTable) RawGetH(key LValue) LValue { if s, sok := key.(LString); sok { if tb.strdict == nil { diff --git a/value.go b/value.go index 4156e9d5..bbfc95f5 100644 --- a/value.go +++ b/value.go @@ -34,7 +34,7 @@ type LValue interface { // LVIsFalse returns true if a given LValue is a nil or false otherwise false. func LVIsFalse(v LValue) bool { return v == LNil || v == LFalse } -// LVIsFalse returns false if a given LValue is a nil or false otherwise true. +// LVAsBool returns false if a given LValue is a nil or false otherwise true. func LVAsBool(v LValue) bool { return v != LNil && v != LFalse } // LVAsString returns string representation of a given LValue From 72c21edacaa058abf4862026b7aa44e709b1b045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Thu, 21 Mar 2024 18:44:03 +0000 Subject: [PATCH 2/2] also fix typo in string --- _state.go | 2 +- state.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_state.go b/_state.go index 6e9febfb..a23685a6 100644 --- a/_state.go +++ b/_state.go @@ -743,7 +743,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 292f93b4..ea32ddc8 100644 --- a/state.go +++ b/state.go @@ -843,7 +843,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 {