mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tutorial: fix missing & in README.md (#11363)
This commit is contained in:
parent
bd33eaa3b8
commit
227d12f1ac
@ -233,6 +233,7 @@ fn main() {
|
||||
insert first_article into Article
|
||||
insert second_article into Article
|
||||
}
|
||||
vweb.run(app, 8080)
|
||||
}
|
||||
```
|
||||
|
||||
@ -263,7 +264,7 @@ Let's fetch the articles in the `index()` action:
|
||||
|
||||
```v ignore
|
||||
// blog.v
|
||||
pub fn (app App) index() vweb.Result {
|
||||
pub fn (app &App) index() vweb.Result {
|
||||
articles := app.find_all_articles()
|
||||
return $vweb.html()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user