From 43d6b97c217db3388ef4121b2c961913fe438d04 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 9 Feb 2022 18:26:09 +0100 Subject: [PATCH] docs: improve the hot reload section, add run command example (#13418) --- doc/docs.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/docs.md b/doc/docs.md index 644cf7c858..d23d92dbfa 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -5590,6 +5590,12 @@ fn main() { ``` Build this example with `v -live message.v`. + +You can also run this example with `v -live run message.v`. + Make sure that in command you use a path to a V's file, + **not** a path to a folder (like `v -live run .`) - + in that case you need to modify content of a folder (add new file, for example), + because changes in *message.v* will have no effect. Functions that you want to be reloaded must have `[live]` attribute before their definition.