mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tutorials: fix argument type (#12182)
This commit is contained in:
parent
c9b2f878b3
commit
6d62574e7f
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user