From a925402b62c06d1cfe2b345cba0b11fa06b8401d Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 20 Nov 2024 21:56:27 +0800 Subject: all: fix some function names and typos in comment Change-Id: I07e7c8eaa5bd4bac0d576b2f2f4cd3f81b0b77a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/630055 LUCI-TryBot-Result: Go LUCI Commit-Queue: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Russ Cox Auto-Submit: Ian Lance Taylor --- src/encoding/binary/binary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encoding') diff --git a/src/encoding/binary/binary.go b/src/encoding/binary/binary.go index a150c0bf05..d80aa8e11a 100644 --- a/src/encoding/binary/binary.go +++ b/src/encoding/binary/binary.go @@ -448,7 +448,7 @@ func Encode(buf []byte, order ByteOrder, data any) (int, error) { // Append appends the binary representation of data to buf. // buf may be nil, in which case a new buffer will be allocated. // See [Write] on which data are acceptable. -// It returns the (possibily extended) buffer containing data or an error. +// It returns the (possibly extended) buffer containing data or an error. func Append(buf []byte, order ByteOrder, data any) ([]byte, error) { // Fast path for basic types and slices. if n, _ := intDataSize(data); n != 0 { -- cgit v1.3