From 7dc8bc1bc4d070bb429d00b75025fce564ca8535 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 10 Sep 2023 19:04:23 +0800 Subject: [PATCH] ... --- docs/cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cheatsheet.md b/docs/cheatsheet.md index 99201df5..f4994cbd 100644 --- a/docs/cheatsheet.md +++ b/docs/cheatsheet.md @@ -83,7 +83,7 @@ Create a list object // obj = [1, 1.0, '123'] List t; t.push_back(VAR(1)); -t.push_bask(VAR(1.0)); +t.push_back(VAR(1.0)); t.push_back(VAR("123")); PyObject* obj = VAR(std::move(t)); ``` @@ -282,7 +282,7 @@ vm->bind(obj, "add(a: int, b: int) -> int", [](VM* vm, ArgsView args){ return VAR(a + b); }); -Bind a native function with docstring +// Bind a native function with docstring vm->bind(obj, "add(a: int, b: int) -> int",