From fc1f41fc847466dbedb9f46f726151289d293aee Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 13 Aug 2020 23:33:18 +0200 Subject: [PATCH] checker: fix a string error test --- vlib/v/checker/tests/string_index_assign_error.out | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/checker/tests/string_index_assign_error.out b/vlib/v/checker/tests/string_index_assign_error.out index 26f1c610b4..f54cd70bd6 100644 --- a/vlib/v/checker/tests/string_index_assign_error.out +++ b/vlib/v/checker/tests/string_index_assign_error.out @@ -1,4 +1,5 @@ -vlib/v/checker/tests/string_index_assign_error.v:3:6: error: cannot assign to s[i] (strings are immutable) +vlib/v/checker/tests/string_index_assign_error.v:3:6: error: cannot assign to s[i] since V strings are immutable +(note, that variables may be mutable but string values are always immutable, like in Go and Java) 1 | fn main() { 2 | mut a := 'V is great!!' 3 | a[0] = `R`