1
0
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:
Mark 2021-05-06 14:43:41 +01:00 committed by GitHub
parent 483068f071
commit 928ced3df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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