mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: remove obsolete information about generic types (#9200)
This commit is contained in:
parent
15927cbf56
commit
2ed73bf243
@ -2525,7 +2525,6 @@ posts_repo := new_repo<Post>(db) // returns Repo<Post>
|
||||
user := users_repo.find_by_id(1)? // find_by_id<User>
|
||||
post := posts_repo.find_by_id(1)? // find_by_id<Post>
|
||||
```
|
||||
At the moment only one type parameter named `T` is supported.
|
||||
|
||||
Currently generic function definitions must declare their type parameters, but in
|
||||
future V will infer generic type parameters from single-letter type names in
|
||||
|
Loading…
Reference in New Issue
Block a user