mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Restore correct inline code sample
(This appears to have been accidentally broken in a73428b4.)
This commit is contained in:
parent
5917c8e7da
commit
d88956e864
@ -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!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user