tutorials: fix argument type (#12182)
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…
Reference in New Issue