diff options
author | Pi Delport <pjdelport@gmail.com> | 2016-06-20 21:37:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 21:37:56 +0800 |
commit | d88956e86474f822209b979e7bf1fdd51277d021 (patch) | |
tree | c2be4514b3a3272d542c092cdad0c278e72f13ea /docs | |
parent | 5917c8e7da762f1d8aebd11c0a21934a0ca3bd9e (diff) | |
download | dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.gz dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.tar.zst dexon-solidity-d88956e86474f822209b979e7bf1fdd51277d021.zip |
Restore correct inline code sample
(This appears to have been accidentally broken in a73428b4.)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/types.rst | 2 |
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! |