doc: simplify string mutability section (#6369)

pull/6390/head
spaceface777 2020-09-16 16:40:52 +02:00 committed by GitHub
parent c960b5979e
commit 96b7cce810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -355,9 +355,7 @@ println(s) // "hello world"
In V, a string is a read-only array of bytes. String data is encoded using UTF-8.
Just like in Go and Java, strings are immutable, which means their values cannot be changed.
The following code will raise an error:
String values are immutable. The following code will raise an error:
```v
mut s := 'hello'