diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-08-05 00:35:00 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-08-05 00:35:34 +0800 |
commit | b881dbb29200558d93c642ef41950d9d43a7e679 (patch) | |
tree | 7c277c6f080b3f8a95880aaa6f4fecc1ecc2fdc0 | |
parent | fefe9bdee76d5acff8b14da8c5b60f16b7f7a83c (diff) | |
download | dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.gz dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.bz2 dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.lz dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.xz dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.tar.zst dexon-solidity-b881dbb29200558d93c642ef41950d9d43a7e679.zip |
Document \n, \xNN and \uNNNN
-rw-r--r-- | docs/types.rst | 2 |
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: |