From 7bcca827b6b764f46264787cb79aec8f167d3f10 Mon Sep 17 00:00:00 2001 From: Tin Le Date: Fri, 24 Apr 2020 00:05:27 +0700 Subject: [PATCH] docs: replace remaining `var` with `mut` --- doc/docs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 29e4c7cc21..dcddcfd567 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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 }