]> Cypherpunks.ru repositories - gostls13.git/commitdiff
io: remove UTF8 specified document for RuneReader
authorMeng Zhuo <mzh@golangcn.org>
Thu, 28 Oct 2021 02:04:36 +0000 (10:04 +0800)
committerMeng Zhuo <mzh@golangcn.org>
Fri, 29 Oct 2021 02:16:47 +0000 (02:16 +0000)
RuneReader is fine with UTF16 or any other character encoding

Fixes #49178

Change-Id: I08a5ac205e095349d451d3b60411eaeebc3aa563
Reviewed-on: https://go-review.googlesource.com/c/go/+/359334
Trust: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
TryBot-Result: Go Bot <gobot@golang.org>

src/io/io.go

index ceac7ba7f874f9370b2e76e4e571c04abd262864..5635392dfb888805fe385746fb91413ebdcca3b1 100644 (file)
@@ -279,7 +279,7 @@ type ByteWriter interface {
 
 // RuneReader is the interface that wraps the ReadRune method.
 //
-// ReadRune reads a single UTF-8 encoded Unicode character
+// ReadRune reads a single encoded Unicode character
 // and returns the rune and its size in bytes. If no character is
 // available, err will be set.
 type RuneReader interface {