blueloveTH преди 1 година
родител
ревизия
4ea33da1ec
променени са 2 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 1 2
      docs/quick-start/misc.md
  2. 1 2
      docs/quick-start/modules.md

+ 1 - 2
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.
 When the vm is running python-level bytecodes, gc may start and delete your temporary object.
 
 
 The scope lock prevents this from happening.
 The scope lock prevents this from happening.

+ 1 - 2
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.
 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.
 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
 ```cpp
 PyObject* mod = vm->new_module("test");
 PyObject* mod = vm->new_module("test");