From 45695543ba183380633ba3eb1f0dd7b3c076b3c5 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 14 Dec 2019 18:59:02 +0300 Subject: [PATCH] tutorial: minor fixes --- tutorials/building-a-simple-web-blog-with-vweb.md | 6 +++++- tutorials/{ => code/blog}/index.html | 0 vlib/vweb/vweb.v | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) rename tutorials/{ => code/blog}/index.html (100%) diff --git a/tutorials/building-a-simple-web-blog-with-vweb.md b/tutorials/building-a-simple-web-blog-with-vweb.md index 46aa478123..60e36b6876 100644 --- a/tutorials/building-a-simple-web-blog-with-vweb.md +++ b/tutorials/building-a-simple-web-blog-with-vweb.md @@ -81,7 +81,11 @@ Run it with v run blog.v ``` -and open http://localhost:8080/ in your browser: +``` +Running a Vweb app on http://localhost:8080 ... +``` + +Vweb helpfully provided a link, open http://localhost:8080/ in your browser: diff --git a/tutorials/index.html b/tutorials/code/blog/index.html similarity index 100% rename from tutorials/index.html rename to tutorials/code/blog/index.html diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 80b0750808..fd373d837b 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -124,7 +124,7 @@ fn (ctx &Context) get_header(key string) string { //pub fn run(port int) { pub fn run(app mut T, port int) { - println('Running vweb app on http://localhost:$port ...') + println('Running a Vweb app on http://localhost:$port ...') l := net.listen(port) or { panic('failed to listen') } //mut app := T{} app.init()