docs: replace remaining `var` with `mut`

pull/4564/head
Tin Le 2020-04-24 00:05:27 +07:00 committed by GitHub
parent 4f4567513e
commit 7bcca827b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -562,12 +562,12 @@ Their access modifiers can be changed with
```v
struct Foo {
a int // private immutable (default)
var:
mut:
b int // private mutable
c int // (you can list multiple fields with the same access modifier)
pub:
d int // public immmutable (readonly)
pub var:
pub mut:
e int // public, but mutable only in parent module
__global:
f int // public and mutable both inside and outside parent module
@ -637,7 +637,7 @@ It is possible to modify function arguments by using the same keyword `mut`:
```v
struct User {
var:
mut:
is_registered bool
}