Skip to content

Commit 4d4dbbc

Browse files
committed
RST tweak
1 parent 8e4f08a commit 4d4dbbc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/design_guide.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,18 +448,18 @@ struct.pack
448448

449449
Use `struct.pack_into` instead of `struct.pack`.
450450

451-
Use of MicroPython `const()`
451+
Use of MicroPython ``const()``
452452
--------------------------------------------------------------------------------
453-
The MicroPython `const()` feature, as discussed in `this forum post
453+
The MicroPython ``const()`` feature, as discussed in `this forum post
454454
<https://forum.micropython.org/viewtopic.php?t=450>`_, and in `this issue thread
455455
<https://github.com/micropython/micropython/issues/573>`_, provides some
456456
optimizations that can be useful on smaller, memory constrained devices. However,
457-
when using `const()`, keep in mind these general guide lines:
457+
when using ``const()``, keep in mind these general guide lines:
458458

459-
- Always use via an import, ex: `from micropython import const`
459+
- Always use via an import, ex: ``from micropython import const``
460460
- Limit use to global (module level) variables only.
461461
- If user will not need access to variable, prefix name with a leading
462-
underscore, ex: `_SOME_CONST`.
462+
underscore, ex: ``_SOME_CONST``.
463463

464464
Sensor properties and units
465465
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)