Update docs/_pages/syntax.md

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
This commit is contained in:
vegorov-rbx 2023-02-03 11:09:35 -08:00 committed by GitHub
parent 4469e7cbb8
commit 0c668252d0
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,7 +267,7 @@ print(`Welcome to {
### Restrictions and limitations
The sequence of two opening braces {{ "(`{{`)" }} is rejected with a parse error.
The sequence of two opening braces `` `...{{...}}...` `` is rejected with a parse error.
This restriction is made to prevent developers using other programming languages with a similar feature from trying to attempt that as a way to escape a single `{` and getting unexpected results in Luau.
Luau currently does not support backtick string literals as a type annotation, so `` type Foo = `Foo` `` is invalid.