Skip to content

Commit 43d6b97

Browse files
authored
docs: improve the hot reload section, add run command example (#13418)
1 parent f2eb500 commit 43d6b97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/docs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5590,6 +5590,12 @@ fn main() {
55905590
```
55915591

55925592
Build this example with `v -live message.v`.
5593+
5594+
You can also run this example with `v -live run message.v`.
5595+
Make sure that in command you use a path to a V's file,
5596+
**not** a path to a folder (like `v -live run .`) -
5597+
in that case you need to modify content of a folder (add new file, for example),
5598+
because changes in *message.v* will have no effect.
55935599

55945600
Functions that you want to be reloaded must have `[live]` attribute
55955601
before their definition.

0 commit comments

Comments
 (0)