mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-06 11:30:56 +01:00
Update generic-constraints.md
fixed tabs
This commit is contained in:
parent
6c02857435
commit
5c01bf5ce6
1 changed files with 7 additions and 8 deletions
|
@ -44,7 +44,6 @@ This would match the current expectation of `:` being used to type annotate a va
|
|||
2. Use a `where` clause.
|
||||
```luau
|
||||
local function getProperty<T, K where K: keyof<T>>( object: T, key: K ): index<T, K>
|
||||
|
||||
return object[ key ]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue