checker: fix a string error test

pull/6129/head
Alexander Medvednikov 2020-08-13 23:33:18 +02:00
parent 88cde776e7
commit fc1f41fc84
1 changed files with 2 additions and 1 deletions

View File

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