aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-03-16 07:41:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-03-16 07:41:02 +0800
commit2d8b0fdc39eb8ddaa840fb1ecd478ad7869cb769 (patch)
treea273fa4b87956785b70e3f0ecd3c1833b1ca234e /docs/types.rst
parent0157b86ce655a8dd83f402039a4740a9b7d2eea6 (diff)
downloaddexon-solidity-2d8b0fdc39eb8ddaa840fb1ecd478ad7869cb769.tar.gz
dexon-solidity-2d8b0fdc39eb8ddaa840fb1ecd478ad7869cb769.tar.zst
dexon-solidity-2d8b0fdc39eb8ddaa840fb1ecd478ad7869cb769.zip
Fix inconsistent use of single backticks
Diffstat (limited to 'docs/types.rst')
-rw-r--r--docs/types.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 243a9a0c..6379f01c 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -232,7 +232,7 @@ a non-rational number).
Integer literals and rational number literals belong to number literal types.
Moreover, all number literal expressions (i.e. the expressions that
contain only number literals and operators) belong to number literal
- types. So the number literal expressions `1 + 2` and `2 + 1` both
+ types. So the number literal expressions ``1 + 2`` and ``2 + 1`` both
belong to the same number literal type for the rational number three.
.. note::
@@ -261,7 +261,7 @@ a non-rational number).
String Literals
---------------
-String literals are written with either double or single-quotes (``"foo"`` or ``'bar'``). They do not imply trailing zeroes as in C; `"foo"`` represents three bytes not four. As with integer literals, their type can vary, but they are implicitly convertible to ``bytes1``, ..., ``bytes32``, if they fit, to ``bytes`` and to ``string``.
+String literals are written with either double or single-quotes (``"foo"`` or ``'bar'``). They do not imply trailing zeroes as in C; ``"foo"`` represents three bytes not four. As with integer literals, their type can vary, but they are implicitly convertible to ``bytes1``, ..., ``bytes32``, if they fit, to ``bytes`` and to ``string``.
String literals support escape characters, such as ``\n``, ``\xNN`` and ``\uNNNN``. ``\xNN`` takes a hex value and inserts the appropriate byte, while ``\uNNNN`` takes a Unicode codepoint and inserts an UTF-8 sequence.