mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Update rfcs/generic-functions.md
Co-authored-by: Tiffany Bennett <tiffany@tiffnix.com>
This commit is contained in:
parent
e73e104257
commit
a01935e96a
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ Extend the syntax and semantics of functions to support explicit generic functio
|
|||
|
||||
Currently Luau allows generic functions to be inferred but not given explicit type annotations. For example
|
||||
|
||||
```
|
||||
```lua
|
||||
function id(x) return x end
|
||||
local x: string = id("hi")
|
||||
local y: number = id(37)
|
||||
|
|
Loading…
Add table
Reference in a new issue