Skip to content
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

chore: fix some function names in comment #1322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions internal/gopher-lua/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (tb *LTable) Len() int {
return 0
}

// RaiseIfReadonly should be called from code on the path between the lua script and the table operation to ensure that
// RaiseIfReadOnly should be called from code on the path between the lua script and the table operation to ensure that
// the given table is writable
func (tb *LTable) RaiseIfReadOnly(L *LState) {
if tb.ReadOnly {
Expand Down Expand Up @@ -312,7 +312,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