We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50218dd commit c9bb925Copy full SHA for c9bb925
1 file changed
docs/develop/library.rst
@@ -26,15 +26,9 @@ Implementing a core module
26
--------------------------
27
28
Like CPython, MicroPython has core builtin modules that can be accessed through import statements.
29
-An example is the ``gc`` module discussed in :ref:`memorymanagement`.
+An example is the :mod:`gc` module discussed in :ref:`memorymanagement`.
30
31
-.. code-block:: bash
32
-
33
- >>> import gc
34
- >>> gc.enable()
35
- >>>
36
37
-MicroPython has several other builtin standard/core modules like ``io``, ``array`` etc.
+MicroPython has several other builtin standard/core modules like :mod:`io`, :mod:`array`, etc.
38
Adding a new core module involves several modifications.
39
40
First, create the ``C`` file in the ``py/`` directory. In this example we are adding a
0 commit comments