From d88956e86474f822209b979e7bf1fdd51277d021 Mon Sep 17 00:00:00 2001 From: Pi Delport Date: Mon, 20 Jun 2016 15:37:56 +0200 Subject: Restore correct inline code sample (This appears to have been accidentally broken in a73428b4.) --- docs/types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! -- cgit