From 2c7cdec2a762108ae9231b7861c3689f4d23b58c Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Thu, 28 Oct 2021 10:04:36 +0800 Subject: [PATCH] io: remove UTF8 specified document for RuneReader 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 Reviewed-by: Meng Zhuo Reviewed-by: Ian Lance Taylor Reviewed-by: Rob Pike Run-TryBot: Meng Zhuo TryBot-Result: Go Bot --- src/io/io.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/io.go b/src/io/io.go index ceac7ba7f8..5635392dfb 100644 --- a/src/io/io.go +++ b/src/io/io.go @@ -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 { -- 2.50.0