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

doc: simplify string mutability section (#6369)

This commit is contained in:
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

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'