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>
This commit is contained in:
Angus Gratton
2026-04-01 11:42:50 +11:00
committed by Damien George
parent 50218dd2a8
commit c9bb9250db
+2 -8
View File
@@ -26,15 +26,9 @@ Implementing a core module
--------------------------
Like CPython, MicroPython has core builtin modules that can be accessed through import statements.
An example is the ``gc`` module discussed in :ref:`memorymanagement`.
An example is the :mod:`gc` module discussed in :ref:`memorymanagement`.
.. code-block:: bash
>>> import gc
>>> gc.enable()
>>>
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.
Adding a new core module involves several modifications.
First, create the ``C`` file in the ``py/`` directory. In this example we are adding a