Skip to content

Commit cad2cd5

Browse files
authored
docs: fix typos using codespell (#17332)
1 parent 580dbc3 commit cad2cd5

File tree

22 files changed

+48
-48
lines changed

22 files changed

+48
-48
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
- `utf8.is_number()`, `utf8.is_space()` functions.
108108
- New `encoding.base32` module.
109109
- `-skip-unused` fixes, soon to be made the default.
110-
- `gg.TouchPoint` to differenciate between different types of touch input.
110+
- `gg.TouchPoint` to differentiate between different types of touch input.
111111
- Anonymous structs visibility issues fixed.
112112
- orm: support parenthesized expressions like `select from User where (name == 'Sam' && is_customer == true) || id == 1`.
113113
- `vweb.csrf` module.
@@ -190,7 +190,7 @@
190190
- Generic interfaces.
191191
- TCC is now bundled with the language, this allows building V programs without an external C compiler dependency.
192192
- Null can be used in `unsafe` only (for example, for C interop).
193-
- Pointer arithmetics and comparing pointers to numbers is now also only allowed in `unsafe`.
193+
- Pointer arithmetic and comparing pointers to numbers is now also only allowed in `unsafe`.
194194
- Inline sumtypes.
195195
- New module `compress.gzip`.
196196
- Lots of `net`/`net.http`/`vweb` fixes (also used for the upcoming Gitly launch).
@@ -447,7 +447,7 @@ files with compilation errors.
447447
- V now enforces short enum syntax (`.green` instead of `Color.green`) when it's enough.
448448
- V UI for macOS.
449449
- Interfaces have been rewritten. `[]interface` support.
450-
- `os.cp()` for copying files and directores.
450+
- `os.cp()` for copying files and directories.
451451
- Additional compile-time flags: `$if clang, msvc, mingw, x32, x64, big_endian, little_endian {`.
452452
- All C functions now have to be declared, all missing C functions have been defined.
453453
- Global variables (only with the `-enable-globals` flag)
@@ -597,7 +597,7 @@ this backend.
597597
- `map.delete(key)`.
598598
- `libcurl` dependency was removed from the `http` module.
599599
- All function arguments are now immutable by default (previously they could be
600-
modifed inside the function).
600+
modified inside the function).
601601
- `http` functions now return options.
602602
- `sync.WaitGroup`.
603603
- `vweb` static files serving.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ accordingly in the steps below.)
8989

9090
Note: The remote named `pullrequest` should point to YOUR own forked repo, not the
9191
main v repository! After this, your local cloned repository is prepared for
92-
making pullrequests, and you can just do normal git operations such as:
92+
making pull requests, and you can just do normal git operations such as:
9393
`git pull` `git status` and so on.
9494

9595
5. When finished with a feature/bugfix/change, you can:
@@ -103,7 +103,7 @@ accordingly in the steps below.)
103103
the new pushed branch.
104104
(Example dialog: https://url4e.com/gyazo/images/364edc04.png)
105105

106-
8. After making your pullrequest (aka, PR), you can continue to work on the
106+
8. After making your pull request (aka, PR), you can continue to work on the
107107
branch `fix_alabala` ... just do again `git push pullrequest` when you have more
108108
commits.
109109

TESTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hundreds/thousands of times.
1010

1111
## `v test-all`
1212

13-
Test and build *everything*. Usefull to verify *locally*, that the CI will
13+
Test and build *everything*. Useful to verify *locally*, that the CI will
1414
most likely pass. Slowest, but most comprehensive.
1515

1616
It works, by running these in succession:
@@ -168,7 +168,7 @@ NB 2: in case you need to modify many .out files, run *twice* in a row:
168168
`VAUTOFIX=1 ./v vlib/v/compiler_errors_test.v`
169169
This will fail the first time, but it will record the new output for each
170170
.vv file, and store it into the corresponding .out file. The second run
171-
should be now successfull, and so you can inspect the difference, and
171+
should be now successful, and so you can inspect the difference, and
172172
commit the new .out files with minimum manual effort.
173173

174174
NB 3: To run only some of the tests, use:

doc/docs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3095,7 +3095,7 @@ match color {
30953095
}
30963096
```
30973097

3098-
The enum type can be any integer type, but can be ommited, if it is `int`: `enum Color {`.
3098+
The enum type can be any integer type, but can be omitted, if it is `int`: `enum Color {`.
30993099

31003100
Enum match must be exhaustive or have an `else` branch.
31013101
This ensures that if a new enum field is added, it's handled everywhere in the code.
@@ -4987,7 +4987,7 @@ contain one or more V modules. A V *package* should have a `v.mod` file
49874987
at its top folder, describing the contents of the package.
49884988

49894989
V packages are installed normally in your `~/.vmodules` folder. That
4990-
location can be overriden by setting the env variable `VMODULES`.
4990+
location can be overridden by setting the env variable `VMODULES`.
49914991

49924992
### Package commands
49934993

@@ -5314,7 +5314,7 @@ struct C.Foo {
53145314
}
53155315
53165316
// Used to add a custom calling convention to a function, available calling convention: stdcall, fastcall and cdecl.
5317-
// This list aslo apply for type aliases (see below).
5317+
// This list also applies for type aliases (see below).
53185318
[callconv: "stdcall"]
53195319
fn C.DefWindowProc(hwnd int, msg int, lparam int, wparam int)
53205320
@@ -5644,7 +5644,7 @@ With the example above:
56445644
> **Note**
56455645
> A combinatorial `_d_customflag_linux.c.v` postfix will not work.
56465646
> If you do need a custom flag file, that has platform dependent code, use the
5647-
> postfix `_d_customflag.v`, and then use plaftorm dependent compile time
5647+
> postfix `_d_customflag.v`, and then use platform dependent compile time
56485648
> conditional blocks inside it, i.e. `$if linux {}` etc.
56495649
56505650
- `_notd_customflag.v` => similar to _d_customflag.v, but will be used
@@ -5982,7 +5982,7 @@ to race conditions. There are several approaches to deal with these:
59825982
where global variables are used to generate (non cryptographic) pseudo random numbers.
59835983
In this case data races lead to random numbers in different threads becoming somewhat
59845984
correlated, which is acceptable considering the performance penalty that using
5985-
synchonization primitives would represent.
5985+
synchronization primitives would represent.
59865986
59875987
## Cross compilation
59885988
@@ -6602,8 +6602,8 @@ should **not** be used for things like build or deploy scripts. To access this f
66026602
file with `#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp` where `tmp` is the prefix for
66036603
the built executable. This will run in crun mode so it will only rebuild if changes to the script
66046604
were made and keep the binary as `tmp.<scriptfilename>`. **Caution**: if this filename already
6605-
exists the file will be overriden. If you want to rebuild each time and not keep this binary instead
6606-
use `#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run`.
6605+
exists the file will be overridden. If you want to rebuild each time and not keep this binary
6606+
instead use `#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run`.
66076607
66086608
# Appendices
66096609

doc/upcoming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ shared b := map[string]int{}
190190
go h3(shared b)
191191
b['apple'] = 3
192192
c['plume'] = 7
193-
y := b['apple'] // not necesarily `3`
193+
y := b['apple'] // not necessarily `3`
194194
195195
// iteration over elements
196196
for k, v in b {

examples/js_dom_cube/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Then you can open `index.html` with your favourite browser.
1919
# Serve examples
2020

2121
### JS server
22-
Afer run `npm init -y` code and genared `./package.json`
22+
After run `npm init -y` code and genared `./package.json`
2323
You can put `start` and `build` at script in jason leaf.
2424
`path './package.json'`
2525
```json

examples/js_dom_draw/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Then you can open `index.html` with your favourite browser.
99
# Serve examples
1010

1111
### JS server
12-
Afer run `npm init -y` code and genared `./package.json`
12+
After run `npm init -y` code and genared `./package.json`
1313
You can put `start` and `build` at script in jason leaf.
1414
`path './package.json'`
1515
```json

examples/js_dom_draw_bechmark_chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A message like `[Vweb] Running app on http://localhost:3001/` should appear
2626

2727
`exit`
2828

29-
# To implement new bechmarks in v
29+
# To implement new benchmarks in v
3030

3131
In `examples/js_dom_draw_bechmark_chart/v_vweb_orm/src/main.v` path
3232
Create a route returning a `Response` struct like:

examples/js_dom_draw_bechmark_chart/chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A message like `[Vweb] Running app on http://localhost:3001/` should appear
1313

1414
`exit`
1515

16-
# To implement new bechmarks in v
16+
# To implement new benchmarks in v
1717

1818
In `examples/js_dom_draw_bechmark_chart/v_vweb_orm/src/main.v` path
1919
Create a route returning a `Response` struct like:

vlib/crypto/ed25519/internal/edwards25519/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This modules was port of Golang `edwards25519` library from [edwards25519](https
1313
About Edwards25519
1414
------------------
1515

16-
Twisted Edwards curves are a familly of elliptic curves allowing complete addition
16+
Twisted Edwards curves are a family of elliptic curves allowing complete addition
1717
formulas without any special case and no point at infinity.
1818
Curve edwards25519 is based on prime 2^255 - 19 for efficient implementation.
1919
Equation and parameters are given in RFC 7748.

0 commit comments

Comments
 (0)