1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: a minor readme update

This commit is contained in:
Alexander Medvednikov 2021-05-17 08:51:49 +03:00
parent d5c306ce57
commit 664f220f40

View File

@ -72,7 +72,7 @@ To start with vweb, you have to import the module `vweb`. After the import,
define a struct to hold vweb.Context (and any other variables your program will define a struct to hold vweb.Context (and any other variables your program will
need). need).
The web server can be started by calling `vweb.run<App>(&App{}, port)`. The web server can be started by calling `vweb.run(&App{}, port)`.
**Example:** **Example:**
@ -84,7 +84,7 @@ struct App {
} }
fn main() { fn main() {
vweb.run<App>(&App{}, 8080) vweb.run(&App{}, 8080)
} }
``` ```