Skip to content

Commit 1957162

Browse files
authored
all: fix typos (#24470)
1 parent 0a37c22 commit 1957162

25 files changed

Lines changed: 52 additions & 52 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
- Fix msvc build filename, remove temp files (#23890)
285285
- Improve the stability of generated code for auto string methods
286286
- Fix codegen for array of anon struct (fix #23896) (#23907)
287-
- Make sure to call the overriden `pub fn (mut a []string) free() {` method, NOT the generic `fn (a &array) free() {` one. (#23911)
287+
- Make sure to call the overridden `pub fn (mut a []string) free() {` method, NOT the generic `fn (a &array) free() {` one. (#23911)
288288
- Fix generic container init (fix #23910) (#23912)
289289
- Fix codegen for generic structinit and generic array return (fix #23916) (#23943)
290290
- Implement alias operator overloading for generic struct parent type (fix #23965) (#23967)
@@ -1188,7 +1188,7 @@
11881188
- net.http: implement http.download_file_with_progress/2, saving each chunk, as it is received, without growing the memory usage (#21633)
11891189
- veb: update import name in docs (#21668)
11901190
- Add `m3u8` MIME type `application/vnd.apple.mpegurl` for multimedia playlists (#21688)
1191-
- veb.auth: use constant time comparision in compare_password_with_hash (#21693)
1191+
- veb.auth: use constant time comparison in compare_password_with_hash (#21693)
11921192
- net.http: correct `Response.status()` method comment, to indicate returning of a `Status` enum field, instead of struct (#21735)
11931193
- net: fix TcpConn.peer_ip/0 to only return the ip address, without the port number (#21831)
11941194
- Add mime type `text/x-vlang`, for `.v` and `.vsh` file extensions (#21851)

‎cmd/tools/vdoc/testdata/multiline/main.comments.out‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ fn a3()
1111
fn a4()
1212
This should be merged into one paragraph.
1313

14-
Note: this should be it's own paragraph.
14+
Note: this should be its own paragraph.
1515
fn a5()
1616
This should be its own paragraph.
1717

1818
Note: this should also be it own paragraph
1919

20-
Note: this should be it's own paragraph.
20+
Note: this should be its own paragraph.
2121
fn a6()
2222
A comment
2323

24-
Fixme: this should be it's own paragraph.
24+
Fixme: this should be its own paragraph.
2525

26-
Fixme: this should be it's own paragraph.
26+
Fixme: this should be its own paragraph.
2727

28-
Fixme: this should be it's own paragraph.
28+
Fixme: this should be its own paragraph.
2929
fn a7()
3030
A comment
3131

32-
Todo: this should be it's own paragraph.
32+
Todo: this should be its own paragraph.
3333

34-
Todo: this should be it's own paragraph.
34+
Todo: this should be its own paragraph.
3535

36-
Todo: this should be it's own paragraph.
36+
Todo: this should be its own paragraph.
3737
fn a8()
3838
A comment
3939

40-
Todo: this should be it's own paragraph.
40+
Todo: this should be its own paragraph.
4141

42-
Note: this should be it's own paragraph.
42+
Note: this should be its own paragraph.
4343

44-
Fixme: this should be it's own paragraph.
44+
Fixme: this should be its own paragraph.
4545
fn a9()
4646
normal comment
4747
fn foo()

‎cmd/tools/vdoc/testdata/multiline/main.v‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,38 @@ pub fn a3() {
1818

1919
// This should be merged
2020
// into one paragraph.
21-
// Note: this should be it's own paragraph.
21+
// Note: this should be its own paragraph.
2222
pub fn a4() {
2323
println('hi')
2424
}
2525

2626
// This should be its own paragraph.
2727
// NOTE: this should also be it own paragraph
28-
// note: this should be it's own paragraph.
28+
// note: this should be its own paragraph.
2929
pub fn a5() {
3030
println('hi')
3131
}
3232

3333
// A comment
34-
// Fixme: this should be it's own paragraph.
35-
// fixme: this should be it's own paragraph.
36-
// FIXME: this should be it's own paragraph.
34+
// Fixme: this should be its own paragraph.
35+
// fixme: this should be its own paragraph.
36+
// FIXME: this should be its own paragraph.
3737
pub fn a6() {
3838
println('hi')
3939
}
4040

4141
// A comment
42-
// TODO: this should be it's own paragraph.
43-
// todo: this should be it's own paragraph.
44-
// Todo: this should be it's own paragraph.
42+
// TODO: this should be its own paragraph.
43+
// todo: this should be its own paragraph.
44+
// Todo: this should be its own paragraph.
4545
pub fn a7() {
4646
println('hi')
4747
}
4848

4949
// A comment
50-
// TODO: this should be it's own paragraph.
51-
// NOTE: this should be it's own paragraph.
52-
// FIXME: this should be it's own paragraph.
50+
// TODO: this should be its own paragraph.
51+
// NOTE: this should be its own paragraph.
52+
// FIXME: this should be its own paragraph.
5353
pub fn a8() {
5454
println('hi')
5555
}

‎cmd/tools/vls.v‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn (upd VlsUpdater) download_prebuilt() ! {
212212
}
213213

214214
if has_last_updated_at && !upd.is_force && asset_last_updated_at <= last_updated_at {
215-
upd.log("VLS was already updated to it's latest version.")
215+
upd.log('VLS was already updated to its latest version.')
216216
return
217217
}
218218

@@ -265,7 +265,7 @@ fn (upd VlsUpdater) compile_from_source() ! {
265265
upd.log('Updating VLS repo...')
266266
pull_result := os.execute('${os.quoted_path(vexe)} retry -- ${git} -C ${vls_src_folder} pull')
267267
if !upd.is_force && pull_result.output.trim_space() == 'Already up to date.' {
268-
upd.log("VLS was already updated to it's latest version.")
268+
upd.log('VLS was already updated to its latest version.')
269269
return
270270
}
271271
}

‎cmd/tools/vreduce.v‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ fn reduce_scope(content string, error_msg string, command string, do_fmt bool, f
342342
outer_modified_smth = true
343343
println('')
344344
show_code_stats(code)
345-
} else { // if can remove it, no need to go though it's children
345+
} else { // if can remove it, no need to go through its children
346346
for i in 0 .. item.children.len {
347347
stack.insert(0, &item.children[i]) // breadth first search
348348
}
@@ -421,7 +421,7 @@ fn reduce_scope(content string, error_msg string, command string, do_fmt bool, f
421421
outer_modified_smth = true
422422
println('')
423423
show_code_stats(code)
424-
} else { // if can remove it, can remove it's children
424+
} else { // if can remove it, can remove its children
425425
for i in 0 .. item.children.len {
426426
stack << &item.children[i]
427427
}

‎cmd/tools/vshader.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// vshader aids in generating special shader code C headers via sokol-shdc's 'annotated GLSL' format to any
66
// supported target formats that sokol_gfx supports internally.
77
//
8-
// vshader bootstraps itself by downloading it's own dependencies to a system cache directory on first run.
8+
// vshader bootstraps itself by downloading its own dependencies to a system cache directory on first run.
99
//
1010
// Please see https://github.com/floooh/sokol-tools/blob/master/docs/sokol-shdc.md#feature-overview
1111
// for a more in-depth overview of the specific tool in use.

‎cmd/tools/vtest-parser.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main() {
6262
exit(0)
6363
} else {
6464
// The process supervisor should NOT crash/panic, unlike the workers.
65-
// It's job, is to:
65+
// Its job, is to:
6666
// 1) start workers
6767
// 2) accumulate results
6868
// 3) produce a summary at the end

‎doc/docs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6072,7 +6072,7 @@ that are substituted at compile time:
60726072
- `@BUILD_TIME` => replaced with the build time, for example '12:32:07' .
60736073
- `@BUILD_TIMESTAMP` => replaced with the build timestamp, for example '1726219885' .
60746074
Note: `@BUILD_DATE`, `@BUILD_TIME`, `@BUILD_TIMESTAMP` represent times in the UTC timezone.
6075-
By default, they are based on the current time of the compilation/build. They can be overriden
6075+
By default, they are based on the current time of the compilation/build. They can be overridden
60766076
by setting the environment variable `SOURCE_DATE_EPOCH`. That is also useful while making
60776077
releases, since you can use the equivalent of this in your build system/script:
60786078
`export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) ;` , and then use `@BUILD_DATE` etc.,

‎vlib/crypto/ecdsa/ecdsa.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import hash
77

88
// NID constants
99
//
10-
// NIST P-256 is refered to as secp256r1 and prime256v1, defined as #define NID_X9_62_prime256v1 415
10+
// NIST P-256 is referred to as secp256r1 and prime256v1, defined as #define NID_X9_62_prime256v1 415
1111
// Different names, but they are all the same.
1212
// https://www.rfc-editor.org/rfc/rfc4492.html#appendix-A
1313
const nid_prime256v1 = C.NID_X9_62_prime256v1

‎vlib/encoding/utf8/utf8_util_test.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn test_raw_indexing() {
6262
assert utf8.raw_index(a, 7) == 'g'
6363
assert utf8.raw_index(a, 8) == '!'
6464

65-
// test differnt utf8 byte lenghts
65+
// test differnt utf8 byte lengths
6666
c := 'a©★🚀'
6767
assert utf8.raw_index(c, 0) == 'a' // 1 byte
6868
assert utf8.raw_index(c, 1) == '©' // 2 bytes

0 commit comments

Comments
 (0)