mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix invalid escape sequence
It seems like this was intended to match a digit
This commit is contained in:
parent
dfe6230c5f
commit
f18de4ba7d
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ In addition to declaring types for a given value, Luau supports declaring type a
|
||||||
```lua
|
```lua
|
||||||
type Point = { x: number, y: number }
|
type Point = { x: number, y: number }
|
||||||
type Array<T> = { [number]: T }
|
type Array<T> = { [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.
|
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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue