Merge pull request #12301 from ethereum/docs-literals

Fix documentation for valid ASCII string literals
This commit is contained in:
chriseth 2021-11-22 11:02:30 +01:00 committed by GitHub
commit 436147872c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,7 @@ String literals are written with either double or single-quotes (``"foo"`` or ``
For example, with ``bytes32 samevar = "stringliteral"`` the string literal is interpreted in its raw byte form when assigned to a ``bytes32`` type.
String literals can only contain printable ASCII characters, which means the characters between and including 0x1F .. 0x7E.
String literals can only contain printable ASCII characters, which means the characters between and including 0x20 .. 0x7E.
Additionally, string literals also support the following escape characters: