docs: small English improvement (#10020)

I also suggest globally replacing "is casted" with "is cast" throughout since this is better English.
pull/10029/head
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
1 changed files with 3 additions and 3 deletions

View File

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