doc: mention []rune.string() (#13348)

pull/13363/head
kahsa 2022-02-03 18:29:02 +09:00 committed by GitHub
parent be1e40dac0
commit ede9f29323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -712,6 +712,7 @@ A string can be converted to runes by the `.runes()` method.
```v
hello := 'Hello World 👋'
hello_runes := hello.runes() // [`H`, `e`, `l`, `l`, `o`, ` `, `W`, `o`, `r`, `l`, `d`, ` `, `👋`]
assert hello_runes.string() == hello
```
### Numbers