From f18de4ba7dbc0122b9b720bdc65246bde31bf60b Mon Sep 17 00:00:00 2001 From: Halalaluyafail3 <55773281+Halalaluyafail3@users.noreply.github.com> Date: Fri, 14 Jan 2022 16:02:53 -0500 Subject: [PATCH] Fix invalid escape sequence It seems like this was intended to match a digit --- docs/_pages/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/syntax.md b/docs/_pages/syntax.md index 6d3f2243..4d39e462 100644 --- a/docs/_pages/syntax.md +++ b/docs/_pages/syntax.md @@ -158,7 +158,7 @@ In addition to declaring types for a given value, Luau supports declaring type a ```lua type Point = { x: number, y: number } type Array = { [number]: T } -type Something = typeof(string.gmatch("", "\d")) +type Something = typeof(string.gmatch("", "%d")) ``` The right hand side of the type alias can be a type definition or a `typeof` expression; `typeof` expression doesn't evaluate its argument at runtime.