From 5bf5ddcc71e21e8e6b7d118e7b1e4e383c7b3414 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 5 May 2024 00:01:41 +0800 Subject: [PATCH] Update bindings.md --- docs/bindings.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/bindings.md b/docs/bindings.md index ff3a8435..797f6426 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -133,7 +133,8 @@ int main(){ }); // 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.y)"); // 2