aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-06-21 23:10:37 +0800
committerGitHub <noreply@github.com>2016-06-21 23:10:37 +0800
commit263676a259250a7e25830578647e69cbdcec725a (patch)
tree782a364a86363e14c4397cd7134054363971836b /docs
parent9da08ac3101eaed04b06d34a8685d3fe52fcfb49 (diff)
parentd88956e86474f822209b979e7bf1fdd51277d021 (diff)
downloaddexon-solidity-263676a259250a7e25830578647e69cbdcec725a.tar.gz
dexon-solidity-263676a259250a7e25830578647e69cbdcec725a.tar.zst
dexon-solidity-263676a259250a7e25830578647e69cbdcec725a.zip
Merge pull request #673 from pjdelport/patch-2
Restore correct inline code sample
Diffstat (limited to 'docs')
-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!