1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

for: check for redefinitions

This commit is contained in:
Alexander Medvednikov
2019-12-14 19:58:55 +03:00
parent be2b5698c5
commit 2e23592264
3 changed files with 15 additions and 6 deletions

View File

@ -247,7 +247,7 @@ struct Article {
text string
}
pub fn (app & App) find_all_articles() []Article {
pub fn (app &App) find_all_articles() []Article {
db := app.db
articles := db.select from Article
return articles
@ -314,8 +314,8 @@ article := app.retrieve_article(10) or {
```
> Temporary variables like `db := app.db` are a temporary limitation in the
V ORM, soon they will not be needed.
> `db := app.db` is a temporary limitation in the
V ORM, soon this will not be needed.
To be continued on Dec 14...