1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix a string error test

This commit is contained in:
Alexander Medvednikov 2020-08-13 23:33:18 +02:00
parent 88cde776e7
commit fc1f41fc84

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`