mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix a doc issue
This commit is contained in:
parent
a98e710fe7
commit
1b7ab37f01
@ -158,7 +158,7 @@ struct wrapped__Point{
|
|||||||
|
|
||||||
// __init__ method
|
// __init__ method
|
||||||
vm->bind(type, "__init__(self, x, y)", [](VM* vm, ArgsView args){
|
vm->bind(type, "__init__(self, x, y)", [](VM* vm, ArgsView args){
|
||||||
wrapped__Point& self = _py_cast<wrapped__Point>(vm, args[0]);
|
wrapped__Point& self = _py_cast<wrapped__Point&>(vm, args[0]);
|
||||||
self.value.x = py_cast<int>(vm, args[1]);
|
self.value.x = py_cast<int>(vm, args[1]);
|
||||||
self.value.y = py_cast<int>(vm, args[2]);
|
self.value.y = py_cast<int>(vm, args[2]);
|
||||||
return vm->None;
|
return vm->None;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user