Skip to content

Commit c9a41e1

Browse files
committed
Clarify tab can be escaped (or not) in basic strings
As discussed in #877, the current description of basic strings in the docs say that tab characters are allowed. However this text is immediately followed by an example that uses escaped tabs `\t`, which make it a bit ambiguous and hard to understand. The change introduced here explicitly says that tabs can be used either directly or in its escaped form.
1 parent e355862 commit c9a41e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toml.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ For convenience, some popular characters have a compact escape sequence.
284284
\UXXXXXXXX - unicode (U+XXXXXXXX)
285285
```
286286

287+
Tab characters can be used either directly or in its escaped form `\t`.
288+
287289
Any Unicode character may be escaped with the `\uXXXX` or `\UXXXXXXXX` forms.
288290
The escape codes must be valid Unicode [scalar
289291
values](https://unicode.org/glossary/#unicode_scalar_value).

0 commit comments

Comments
 (0)