@@ -499,8 +499,8 @@ s[0] = `H` // not allowed
499
499
```
500
500
> error: cannot assign to ` s[i] ` since V strings are immutable
501
501
502
- Note that indexing a string will produce a ` byte ` , not a ` rune ` nor another ` string ` .
503
- Indexes correspond to bytes in the string, not Unicode code points. If you want to
502
+ Note that indexing a string will produce a ` byte ` , not a ` rune ` nor another ` string ` .
503
+ Indexes correspond to bytes in the string, not Unicode code points. If you want to
504
504
convert the ` byte ` to a ` string ` , use the ` ascii_str() ` method:
505
505
506
506
``` v
@@ -1899,7 +1899,7 @@ new_button(ButtonConfig{text:'Click me', width:100})
1899
1899
This only works for functions that take a struct for the last argument.
1900
1900
1901
1901
NB: the ` [params] ` tag is used to tell V, that the trailing struct parameter
1902
- can be ommited * entirely* , so that you can write ` button := new_button() ` .
1902
+ can be omitted * entirely* , so that you can write ` button := new_button() ` .
1903
1903
Without it, you have to specify * at least* one of the field names, even if it
1904
1904
has its default value, otherwise the compiler will produce this error message,
1905
1905
when you call the function with no parameters:
@@ -2783,7 +2783,7 @@ println('Grocery IDs: $g1, $g2, $g3')
2783
2783
2784
2784
Output: ` Grocery IDs: 0, 5, 6 ` .
2785
2785
2786
- Operations are not allowed on enum variables; they must be explicity cast to ` int ` .
2786
+ Operations are not allowed on enum variables; they must be explicitly cast to ` int ` .
2787
2787
2788
2788
### Sum types
2789
2789
@@ -4691,7 +4691,7 @@ If no flags are passed it will add `--cflags` and `--libs`, both lines below do
4691
4691
The ` .pc ` files are looked up into a hardcoded list of default pkg-config paths, the user can add
4692
4692
extra paths by using the ` PKG_CONFIG_PATH ` environment variable. Multiple modules can be passed.
4693
4693
4694
- To check the existance of a pkg-config use ` $pkgconfig('pkg') ` as a compile time "if" condition to
4694
+ To check the existence of a pkg-config use ` $pkgconfig('pkg') ` as a compile time "if" condition to
4695
4695
check if a pkg-config exists. If it exists the branch will be created. Use ` $else ` or ` $else $if `
4696
4696
to handle other cases.
4697
4697
@@ -5140,7 +5140,7 @@ but may impact the size of your executable.
5140
5140
5141
5141
` [direct_array_access] ` - in functions tagged with ` [direct_array_access] `
5142
5142
the compiler will translate array operations directly into C array operations -
5143
- omiting bounds checking. This may save a lot of time in a function that iterates
5143
+ omitting bounds checking. This may save a lot of time in a function that iterates
5144
5144
over an array but at the cost of making the function unsafe - unless
5145
5145
the boundaries will be checked by the user.
5146
5146
@@ -5220,7 +5220,7 @@ operator overloading is an important feature to have in order to improve readabi
5220
5220
To improve safety and maintainability, operator overloading is limited:
5221
5221
5222
5222
- It's only possible to overload ` +, -, *, /, %, <, >, ==, !=, <=, >= ` operators.
5223
- - ` == ` and ` != ` are self generated by the compiler but can be overriden .
5223
+ - ` == ` and ` != ` are self generated by the compiler but can be overridden .
5224
5224
- Calling other functions inside operator functions is not allowed.
5225
5225
- Operator functions can't modify their arguments.
5226
5226
- When using ` < ` and ` == ` operators, the return type must be ` bool ` .
@@ -5552,7 +5552,7 @@ fn C.DefWindowProc(hwnd int, msg int, lparam int, wparam int)
5552
5552
// Windows only:
5553
5553
// If a default graphics library is imported (ex. gg, ui), then the graphical window takes
5554
5554
// priority and no console window is created, effectively disabling println() statements.
5555
- // Use to explicity create console window. Valid before main() only.
5555
+ // Use to explicitly create console window. Valid before main() only.
5556
5556
[console]
5557
5557
fn main() {
5558
5558
}
0 commit comments