mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update docs/_pages/typecheck.md
This commit is contained in:
parent
8e1564f300
commit
713a3550f8
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ local x: {number} = reverse({1, 2, 3})
|
||||||
local y: {string} = reverse({"a", "b", "c"})
|
local y: {string} = reverse({"a", "b", "c"})
|
||||||
```
|
```
|
||||||
Generic types are used for built-in functions as well as user functions,
|
Generic types are used for built-in functions as well as user functions,
|
||||||
for example the type of `table.insert` is:
|
for example the type of two-argument `table.insert` is:
|
||||||
```lua
|
```lua
|
||||||
<T>({T}, T) -> ()
|
<T>({T}, T) -> ()
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue