Skip to content

Commit 3c48384

Browse files
committed
tests/cpydiff: Fix markup where "" (xref) was used instead of "`" (code).
1 parent 4fee35a commit 3c48384

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cpydiff/builtin_next_arg2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
categories: Modules,builtins
33
description: Second argument to next() is not implemented
44
cause: MicroPython is optimised for code space.
5-
workaround: Instead of `val = next(it, deflt)` use::
5+
workaround: Instead of ``val = next(it, deflt)`` use::
66
77
try:
88
val = next(it)

tests/cpydiff/types_str_ljust_rjust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
categories: Types,str
33
description: str.ljust() and str.rjust() not implemented
44
cause: MicroPython is highly optimized for memory usage. Easy workarounds available.
5-
workaround: Instead of `s.ljust(10)` use `"%-10s" % s`, instead of `s.rjust(10)` use `"% 10s" % s`. Alternatively, `"{:<10}".format(s)` or `"{:>10}".format(s)`.
5+
workaround: Instead of ``s.ljust(10)`` use ``"%-10s" % s``, instead of ``s.rjust(10)`` use ``"% 10s" % s``. Alternatively, ``"{:<10}".format(s)`` or ``"{:>10}".format(s)``.
66
"""
77
print('abc'.ljust(10))

0 commit comments

Comments
 (0)