fix: typo in document

This commit is contained in:
AN Long
2024-08-14 22:40:55 +08:00
parent 6bbe68dfcb
commit eb6f487e2a

View File

@@ -347,14 +347,14 @@ func (b Builder) PyNewTuple(n Expr) (ret Expr) {
return b.Call(fn, n)
}
// PyListSetItem(list *Object, index uintptr, item *Object) c.Int
// PyTupleSetItem(list *Object, index uintptr, item *Object) c.Int
func (b Builder) PyTupleSetItem(list, index, item Expr) (ret Expr) {
prog := b.Prog
fn := b.Pkg.pyFunc("PyTuple_SetItem", prog.tyTupleSetItem())
return b.Call(fn, list, index, item)
}
// PyList(args ...Expr) *Object
// PyTuple(args ...Expr) *Object
func (b Builder) PyTuple(args ...Expr) (ret Expr) {
prog := b.Prog
n := len(args)