diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/types.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index 35f0e247..0c5aaf1b 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -214,7 +214,9 @@ a non-rational number). String Literals --------------- -String Literals are written with double quotes (``"abc"``). As with integer literals, their type can vary, but they are implicitly convertible to ``bytes`` if they fit, to ``bytes`` and to ``string``. +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 |