mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.help: fix typos (#18987)
This commit is contained in:
parent
aa3d560b05
commit
c7f708e64d
@ -57,9 +57,9 @@ see also `v help build`.
|
|||||||
Use with `-freestanding`. This specifies the directory to the
|
Use with `-freestanding`. This specifies the directory to the
|
||||||
implementation of some basic builtin functions. The list is as follows:
|
implementation of some basic builtin functions. The list is as follows:
|
||||||
bare_print(buf &byte, len u64)
|
bare_print(buf &byte, len u64)
|
||||||
Print len charecters from the buffer pointed to by buf to stdout.
|
Print len characters from the buffer pointed to by buf to stdout.
|
||||||
bare_eprint(buf &byte, len u64)
|
bare_eprint(buf &byte, len u64)
|
||||||
Print len charecters from the buffer pointed to by buf to stderr.
|
Print len characters from the buffer pointed to by buf to stderr.
|
||||||
bare_panic(msg string)
|
bare_panic(msg string)
|
||||||
Print "V panic: " + msg, along with an optional backtrace and/or the V commit hash, and then exit.
|
Print "V panic: " + msg, along with an optional backtrace and/or the V commit hash, and then exit.
|
||||||
[export: 'malloc']
|
[export: 'malloc']
|
||||||
|
@ -27,7 +27,7 @@ For more general build help, see also `v help build`.
|
|||||||
(currently default,
|
(currently default,
|
||||||
external source map files not implemented)
|
external source map files not implemented)
|
||||||
|
|
||||||
-sourcemap-src-include Include the orginal V source files into the
|
-sourcemap-src-include Include the original V source files into the
|
||||||
generated source map
|
generated source map
|
||||||
(default false, all files in the source map are currently referenced by
|
(default false, all files in the source map are currently referenced by
|
||||||
their absolute system file path)
|
their absolute system file path)
|
||||||
|
@ -15,7 +15,7 @@ For more general build help, see also `v help build`.
|
|||||||
-os <browser|wasi>, -target-os <browser|wasi>
|
-os <browser|wasi>, -target-os <browser|wasi>
|
||||||
Change the target WebAssembly execution environment that V compiles for.
|
Change the target WebAssembly execution environment that V compiles for.
|
||||||
|
|
||||||
The `wasi` target is the default execution enviroment.
|
The `wasi` target is the default execution environment.
|
||||||
When targeting WASI, the generated WebAssembly module can be run in a variety of environments that support the WASI specification.
|
When targeting WASI, the generated WebAssembly module can be run in a variety of environments that support the WASI specification.
|
||||||
WASI provides a standardized interface to interact with the host operating system, allowing WebAssembly modules to perform tasks like file I/O, networking, and more.
|
WASI provides a standardized interface to interact with the host operating system, allowing WebAssembly modules to perform tasks like file I/O, networking, and more.
|
||||||
The specific version of the WASI specification targeted by V is 'wasi_snapshot_preview1'.
|
The specific version of the WASI specification targeted by V is 'wasi_snapshot_preview1'.
|
||||||
|
@ -161,7 +161,7 @@ NB: the build flags are shared with the run command too:
|
|||||||
... will generate a TAGS file, that emacs can then use to jump
|
... will generate a TAGS file, that emacs can then use to jump
|
||||||
to the definition of functions used by v itself. For vim:
|
to the definition of functions used by v itself. For vim:
|
||||||
./v -print-v-files cmd/v | ctags -L -
|
./v -print-v-files cmd/v | ctags -L -
|
||||||
... will generate a simillar tags file, that vi compatible editors can use.
|
... will generate a similar tags file, that vi compatible editors can use.
|
||||||
NB: an useful, although not entirely accurate regexp based Universal Ctags options file
|
NB: an useful, although not entirely accurate regexp based Universal Ctags options file
|
||||||
for V is located in `.ctags.d/v.ctags` . If you use https://ctags.io/ , it will be used
|
for V is located in `.ctags.d/v.ctags` . If you use https://ctags.io/ , it will be used
|
||||||
up automatically, or you can specify it explicitly with --options=.ctags.d/v.ctags .
|
up automatically, or you can specify it explicitly with --options=.ctags.d/v.ctags .
|
||||||
|
@ -36,5 +36,5 @@ Options:
|
|||||||
Example: --after 'rm -rf /tmp/v/'
|
Example: --after 'rm -rf /tmp/v/'
|
||||||
|
|
||||||
You can also customise the timeout, after `v watch` will re-start a monitored
|
You can also customise the timeout, after `v watch` will re-start a monitored
|
||||||
program automatically, even if it was not changed by setting the enviroment
|
program automatically, even if it was not changed by setting the environment
|
||||||
variable VWATCH_TIMEOUT (in seconds). By default, it is 5 min. (300 seconds).
|
variable VWATCH_TIMEOUT (in seconds). By default, it is 5 min. (300 seconds).
|
@ -5,4 +5,4 @@ Usage:
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
-v Enable verbosity while gathering various information
|
-v Enable verbosity while gathering various information
|
||||||
-y Force the submission of the issue, even if an error occured
|
-y Force the submission of the issue, even if an error occurred
|
@ -40,6 +40,6 @@ Other less frequently used commands supported by V include:
|
|||||||
Mainly useful as a parser bug finder for the V Language Server project.
|
Mainly useful as a parser bug finder for the V Language Server project.
|
||||||
|
|
||||||
test-self Test if V is working properly by running all tests, including the compiler ones.
|
test-self Test if V is working properly by running all tests, including the compiler ones.
|
||||||
NB: this can 1-2 minutes to run.
|
NB: this can take 1-2 minutes to run.
|
||||||
|
|
||||||
wipe-cache Remove the V cache folder. Useful for cleaning the cache, and guaranteeing a clean build.
|
wipe-cache Remove the V cache folder. Useful for cleaning the cache, and guaranteeing a clean build.
|
Loading…
Reference in New Issue
Block a user