docs: small English improvement (#10020)
I also suggest globally replacing "is casted" with "is cast" throughout since this is better English.pull/10029/head
parent
483068f071
commit
928ced3df8
|
@ -1069,9 +1069,9 @@ match x.bar {
|
||||||
```
|
```
|
||||||
|
|
||||||
Mutable variables can change, and doing a cast would be unsafe.
|
Mutable variables can change, and doing a cast would be unsafe.
|
||||||
However, sometimes it's needed to have a type cast despite of mutability.
|
However, sometimes it's useful to type cast despite mutability.
|
||||||
In this case the developer has to mark the expression with a `mut` keyword
|
In such cases the developer must mark the expression with the `mut` keyword
|
||||||
to tell the compiler that you're aware of what you're doing.
|
to tell the compiler that they know what they're doing.
|
||||||
|
|
||||||
It works like this:
|
It works like this:
|
||||||
```v oksyntax
|
```v oksyntax
|
||||||
|
|
Loading…
Reference in New Issue