From 1505f3e22cd422bc1978932bd68d1d56657a2c4f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 5 Jul 2020 16:52:20 +0200 Subject: [PATCH] vweb: fix an example --- examples/vweb/vweb_example.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vweb/vweb_example.v b/examples/vweb/vweb_example.v index 33c0e76129..4b337b3e19 100644 --- a/examples/vweb/vweb_example.v +++ b/examples/vweb/vweb_example.v @@ -42,6 +42,6 @@ pub fn (mut app App) text() vweb.Result { } pub fn (mut app App) cookie() vweb.Result { - app.vweb.set_cookie('cookie', 'test') + app.vweb.set_cookie(name:'cookie', value:'test') return app.vweb.text('Headers: $app.vweb.headers') }