utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558)

This commit is contained in:
Pepper Gray 2024-10-18 10:18:31 +02:00 committed by GitHub
parent decea1b188
commit ce8f62146b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 9 deletions

View file

@ -10,7 +10,7 @@ struct Termios {}
// read_line_utf8 blocks execution in a loop and awaits user input
// characters from a terminal until `EOF` or `Enter` key is encountered
// in the input stream.
// read_line_utf8 returns the complete input line as an UTF-8 encoded `[]rune` or
// read_line_utf8 returns the complete UTF-8 input line as an UTF-32 encoded `[]rune` or
// an error if the line is empty.
// The `prompt` `string` is output as a prefix text for the input capturing.
// read_line_utf8 is the main method of the `readline` module and `Readline` struct.