aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-10 23:31:20 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-11 23:10:47 +0800
commite4f9e1f78824966ff130561ff414a6386d456dbb (patch)
treefcaf39dbe7e3ca4c92900ee01b2ca83dede9a40d /docs/types.rst
parent581114da3eb2be63327b933752ac37820c84601a (diff)
downloaddexon-solidity-e4f9e1f78824966ff130561ff414a6386d456dbb.tar.gz
dexon-solidity-e4f9e1f78824966ff130561ff414a6386d456dbb.tar.zst
dexon-solidity-e4f9e1f78824966ff130561ff414a6386d456dbb.zip
Mention single-quotes
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 0f5757a5..486e8b82 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -214,9 +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 ``bytes1``, ..., ``bytes32`` if they fit, to ``bytes`` and to ``string``.
+String literals are written with either double or single-quotes (``"foo"`` or ``'bar'``). 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.
+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.
.. index:: enum