Browse Source

Update bindings.md

blueloveTH 1 year ago
parent
commit
5bf5ddcc71
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/bindings.md

+ 2 - 1
docs/bindings.md

@@ -133,7 +133,8 @@ int main(){
         });
         });
 
 
     // use the Point class
     // use the Point class
-    vm->exec("a = Point(1, 2)");
+    vm->exec("import test");
+    vm->exec("a = test.Point(1, 2)");
     vm->exec("print(a.x)");         // 1
     vm->exec("print(a.x)");         // 1
     vm->exec("print(a.y)");         // 2
     vm->exec("print(a.y)");         // 2