aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/types.rst2
-rw-r--r--docs/units-and-global-variables.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 515c200f..dbbd84d3 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -340,7 +340,7 @@ So ``bytes`` should always be preferred over ``byte[]`` because it is cheaper.
.. note::
If you want to access the byte-representation of a string ``s``, use
- ``bytes(s).length / bytes(s)[7] = x';``. Keep in mind
+ ``bytes(s).length`` / ``bytes(s)[7] = 'x';``. Keep in mind
that you are accessing the low-level bytes of the utf-8 representation,
and not the individual characters!
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 167c694d..8b8f4daa 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -15,7 +15,7 @@ Time Units
==========
Suffixes of ``seconds``, ``minutes``, ``hours``, ``days``, ``weeks`` and
-`years` after literal numbers can be used to convert between units of time where seconds are the base
+``years`` after literal numbers can be used to convert between units of time where seconds are the base
unit and units are considered naively in the following way:
* ``1 == 1 second``