1
0
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:
StunxFS 2021-03-08 15:16:18 -04:00 committed by GitHub
parent 15927cbf56
commit 2ed73bf243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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