Skip to content

Fix typos in 2 comments #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down