aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPi Delport <pjdelport@gmail.com>2016-06-20 21:37:56 +0800
committerGitHub <noreply@github.com>2016-06-20 21:37:56 +0800
commitd88956e86474f822209b979e7bf1fdd51277d021 (patch)
treec2be4514b3a3272d542c092cdad0c278e72f13ea
parent5917c8e7da762f1d8aebd11c0a21934a0ca3bd9e (diff)
downloaddexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.gz
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.bz2
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.lz
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.xz
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.zst
dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.zip
Restore correct inline code sample
(This appears to have been accidentally broken in a73428b4.)
-rw-r--r--docs/types.rst2
1 files changed, 1 insertions, 1 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!