aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-08-05 00:35:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-08-05 00:35:34 +0800
commitb881dbb29200558d93c642ef41950d9d43a7e679 (patch)
tree7c277c6f080b3f8a95880aaa6f4fecc1ecc2fdc0 /docs/types.rst
parentfefe9bdee76d5acff8b14da8c5b60f16b7f7a83c (diff)
downloaddexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.gz
dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.zst
dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.zip
Document \n, \xNN and \uNNNN
Diffstat (limited to 'docs/types.rst')
-rw-r--r--docs/types.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 6e01fce2..0c5aaf1b 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -216,6 +216,8 @@ String Literals
String Literals are written with double quotes (``"abc"``). 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 UTF8 sequence.
+
.. index:: enum
.. _enums: