From 96b7cce8106ea9303538b283d37bd2613fcba772 Mon Sep 17 00:00:00 2001 From: spaceface777 Date: Wed, 16 Sep 2020 16:40:52 +0200 Subject: [PATCH] doc: simplify string mutability section (#6369) --- doc/docs.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 0eab3ffaa1..efadcbdc57 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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'