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