From 4ea33da1ec182b5f45e317a48b7f26401a35076f Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 24 Apr 2024 16:17:07 +0800 Subject: [PATCH] doc fix --- docs/quick-start/misc.md | 3 +-- docs/quick-start/modules.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/quick-start/misc.md b/docs/quick-start/misc.md index ddd5f19e..2afa491d 100644 --- a/docs/quick-start/misc.md +++ b/docs/quick-start/misc.md @@ -24,8 +24,7 @@ void some_func(VM* vm){ } ``` -Because users can have an overload of `__str__`, the call process is unsafe. - +Because users can have an overload of `__str__`, this call is unsafe. When the vm is running python-level bytecodes, gc may start and delete your temporary object. The scope lock prevents this from happening. diff --git a/docs/quick-start/modules.md b/docs/quick-start/modules.md index 722c9afe..241c0a47 100644 --- a/docs/quick-start/modules.md +++ b/docs/quick-start/modules.md @@ -27,8 +27,7 @@ print(test.pi) # 3.14 A native module is a module written in c++ or mixed c++/python. Native modules are always compiled and executed when the VM is created. -To creata a native module, -use `vm->new_module(Str name)`. +To creata a native module, use `vm->new_module(Str name)`. ```cpp PyObject* mod = vm->new_module("test");