tutorials: fix argument type (#12182)

pull/12186/head
Carlos Esquerdo Bernat 2021-10-15 01:24:22 +02:00 committed by GitHub
parent c9b2f878b3
commit 6d62574e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ Create `new.html`:
import vweb
[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 == '' {
return app.text('Empty text/title')
}