Skip to content

Commit c9bb925

Browse files
projectgusdpgeorge
authored andcommitted
docs/develop: Link to module docs, remove extraneous example code.
Small cleanup. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 50218dd commit c9bb925

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

docs/develop/library.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@ Implementing a core module
2626
--------------------------
2727

2828
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`.
29+
An example is the :mod:`gc` module discussed in :ref:`memorymanagement`.
3030

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.
31+
MicroPython has several other builtin standard/core modules like :mod:`io`, :mod:`array`, etc.
3832
Adding a new core module involves several modifications.
3933

4034
First, create the ``C`` file in the ``py/`` directory. In this example we are adding a

0 commit comments

Comments
 (0)