diff options
| author | Paul Sokolovsky | 2017-12-03 15:32:09 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2017-12-03 15:32:09 +0200 |
| commit | 3c483842db18038677a97624d9aafc4cc5b291c4 (patch) | |
| tree | f9eed46ea8a5c286feabc3b72db0c725ef59af3d | |
| parent | 4fee35a32c600d603034b6eb077a55899513ba4d (diff) | |
tests/cpydiff: Fix markup where "`" (xref) was used instead of "``" (code).
| -rw-r--r-- | tests/cpydiff/builtin_next_arg2.py | 2 | ||||
| -rw-r--r-- | 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 cbde773f9..5df2d6e70 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 498596205..fa3f594c1 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)) |
