Skip to content

Commit

Permalink
v.help: fix typos (vlang#18987)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Jul 27, 2023
1 parent aa3d560 commit c7f708e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions vlib/v/help/build/build-c.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ see also `v help build`.
Use with `-freestanding`. This specifies the directory to the
implementation of some basic builtin functions. The list is as follows:
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)
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)
Print "V panic: " + msg, along with an optional backtrace and/or the V commit hash, and then exit.
[export: 'malloc']
Expand Down Expand Up @@ -309,4 +309,4 @@ see also `v help build`.
that use relatively few threads.
It may be decreased, to reduce the memory footprint of programs that launch
hundreds/thousands of threads, but where each of the threads does not need
a big stack.
a big stack.
4 changes: 2 additions & 2 deletions vlib/v/help/build/build-js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ For more general build help, see also `v help build`.
(currently default,
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
(default false, all files in the source map are currently referenced by
their absolute system file path)

The supported targets for the JS backend are: ES6 strict
The supported targets for the JS backend are: ES6 strict
4 changes: 2 additions & 2 deletions vlib/v/help/build/build-wasm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ For more general build help, see also `v help build`.
-os <browser|wasi>, -target-os <browser|wasi>
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.
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 `browser` target is an experimental environment that compiles for a stripped down builtin, for use in browsers.
The produced WebAssembly module will have functions exported that are `pub` and inside the `module main`.
See `examples/wasm/mandelbrot` for an example.
See `examples/wasm/mandelbrot` for an example.
4 changes: 2 additions & 2 deletions vlib/v/help/build/build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
to the definition of functions used by v itself. For vim:
./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
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 .
Expand Down Expand Up @@ -213,4 +213,4 @@ For Native-specific build flags, use `v help build-native`.
For WebAssembly-specific build flags, use `v help build-wasm`.

See also:
`v help run` for documentation regarding `v run`.
`v help run` for documentation regarding `v run`.
4 changes: 2 additions & 2 deletions vlib/v/help/common/watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Options:
Example: --after 'rm -rf /tmp/v/'

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
variable VWATCH_TIMEOUT (in seconds). By default, it is 5 min. (300 seconds).
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).
2 changes: 1 addition & 1 deletion vlib/v/help/other/bug.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Usage:

Options:
-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
2 changes: 1 addition & 1 deletion vlib/v/help/other/other.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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.

0 comments on commit c7f708e

Please sign in to comment.