Skip to content

Commit

Permalink
Merge pull request #12301 from ethereum/docs-literals
Browse files Browse the repository at this point in the history
Fix documentation for valid ASCII string literals
  • Loading branch information
chriseth authored Nov 22, 2021
2 parents 2aeeef8 + b36a3c6 commit 4361478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/value-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 4361478

Please sign in to comment.