mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
tutorials: fix argument type (#12182)
This commit is contained in:
parent
c9b2f878b3
commit
6d62574e7f
@ -350,7 +350,7 @@ Create `new.html`:
|
|||||||
import vweb
|
import vweb
|
||||||
|
|
||||||
[post]
|
[post]
|
||||||
pub fn (mut app App) new_article(title string, text form) vweb.Result {
|
pub fn (mut app App) new_article(title string, text string) vweb.Result {
|
||||||
if title == '' || text == '' {
|
if title == '' || text == '' {
|
||||||
return app.text('Empty text/title')
|
return app.text('Empty text/title')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user