From c90b3d96f565298b72dea4192386ae19c27e6203 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 30 Mar 2022 18:20:25 +0100 Subject: [PATCH] fix vweb docs --- vlib/vweb/vweb.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 03551e9dcb..69f3b998a6 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -157,7 +157,7 @@ pub mut: static_files map[string]string static_mime_types map[string]string // Map containing query params for the route. - // Example: `http://localhost:3000/index?q=vpm&order_by=desc => { 'q': 'vpm', 'order_by': 'desc' } + // http://localhost:3000/index?q=vpm&order_by=desc => { 'q': 'vpm', 'order_by': 'desc' } query map[string]string // Multipart-form fields. form map[string]string @@ -389,7 +389,7 @@ pub struct RunParams { } // run_at - start a new VWeb server, listening only on a specific address `host`, at the specified `port` -// Example: `vweb.run_at(app, 'localhost', 8099)` +// Example: vweb.run_at(app, 'localhost', 8099) [manualfree] pub fn run_at(global_app &T, params RunParams) ? { mut l := net.listen_tcp(params.family, '$params.host:$params.port') or {