Skip to content

Commit 312ac4a

Browse files
committed
docs: Remove deprecated escape characters from the list of available escapes
1 parent 41e06ea commit 312ac4a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/types/value-types.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,17 +514,21 @@ Additionally, string literals also support the following escape characters:
514514
- ``\\`` (backslash)
515515
- ``\'`` (single quote)
516516
- ``\"`` (double quote)
517-
- ``\b`` (backspace)
518-
- ``\f`` (form feed)
519517
- ``\n`` (newline)
520518
- ``\r`` (carriage return)
521519
- ``\t`` (tab)
522-
- ``\v`` (vertical tab)
523520
- ``\xNN`` (hex escape, see below)
524521
- ``\uNNNN`` (unicode escape, see below)
525522

526523
``\xNN`` takes a hex value and inserts the appropriate byte, while ``\uNNNN`` takes a Unicode codepoint and inserts an UTF-8 sequence.
527524

525+
.. note::
526+
527+
Until version 0.8.0 there were three additional escape sequences: ``\b``, ``\f`` and ``\v``.
528+
They are commonly available in other languages but rarely needed in practice.
529+
If you do need them, they can still be inserted via hexadecimal escapes, i.e. ``\x08``, ``\x0c``
530+
and ``\x0b``, respectively, just as any other ASCII character.
531+
528532
The string in the following example has a length of ten bytes.
529533
It starts with a newline byte, followed by a double quote, a single
530534
quote a backslash character and then (without separator) the

0 commit comments

Comments
 (0)