Fix hexadecimal escape sequence

This commit is contained in:
Halalaluyafail3 2022-01-14 15:53:36 -05:00 committed by GitHub
parent d355a83ee8
commit dfe6230c5f
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ The rest of this document documents additional syntax used in Luau.
## String literals
Luau implements support for hexadecimal (`\0x`), Unicode (`\u`) and `\z` escapes for string literals. This syntax follows [Lua 5.3 syntax](https://www.lua.org/manual/5.3/manual.html#3.1):
Luau implements support for hexadecimal (`\x`), Unicode (`\u`) and `\z` escapes for string literals. This syntax follows [Lua 5.3 syntax](https://www.lua.org/manual/5.3/manual.html#3.1):
- `\xAB` inserts a character with the code 0xAB into the string
- `\u{ABC}` inserts a UTF8 byte sequence that encodes U+0ABC character into the string (note that braces are mandatory)