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:
parent
c960b5979e
commit
96b7cce810
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user