From 3c483842db18038677a97624d9aafc4cc5b291c4 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 3 Dec 2017 15:32:09 +0200 Subject: [PATCH] tests/cpydiff: Fix markup where "`" (xref) was used instead of "``" (code). --- tests/cpydiff/builtin_next_arg2.py | 2 +- tests/cpydiff/types_str_ljust_rjust.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpydiff/builtin_next_arg2.py b/tests/cpydiff/builtin_next_arg2.py index cbde773f90..5df2d6e70f 100644 --- a/tests/cpydiff/builtin_next_arg2.py +++ b/tests/cpydiff/builtin_next_arg2.py @@ -2,7 +2,7 @@ categories: Modules,builtins description: Second argument to next() is not implemented cause: MicroPython is optimised for code space. -workaround: Instead of `val = next(it, deflt)` use:: +workaround: Instead of ``val = next(it, deflt)`` use:: try: val = next(it) diff --git a/tests/cpydiff/types_str_ljust_rjust.py b/tests/cpydiff/types_str_ljust_rjust.py index 4985962059..fa3f594c1f 100644 --- a/tests/cpydiff/types_str_ljust_rjust.py +++ b/tests/cpydiff/types_str_ljust_rjust.py @@ -2,6 +2,6 @@ categories: Types,str description: str.ljust() and str.rjust() not implemented cause: MicroPython is highly optimized for memory usage. Easy workarounds available. -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)`. +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)``. """ print('abc'.ljust(10))