From f1bc736245b146b19d485cdbc534f9a765257080 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 15 Jun 2020 21:47:29 +0200 Subject: [PATCH] cpu: adjust godoc comment for hostByteOrder This was changed in CL 194646 to no longer depend on the encoding/binary package. Adjust the godoc comment as well. Change-Id: I1f23dc83a4c1256ebce8a283623f79e1bd00da51 Reviewed-on: https://go-review.googlesource.com/c/sys/+/238037 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- cpu/byteorder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/byteorder.go b/cpu/byteorder.go index ff3eb5b4..dcbb14ef 100644 --- a/cpu/byteorder.go +++ b/cpu/byteorder.go @@ -39,8 +39,8 @@ func (bigEndian) Uint64(b []byte) uint64 { uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56 } -// hostByteOrder returns binary.LittleEndian on little-endian machines and -// binary.BigEndian on big-endian machines. +// hostByteOrder returns littleEndian on little-endian machines and +// bigEndian on big-endian machines. func hostByteOrder() byteOrder { switch runtime.GOARCH { case "386", "amd64", "amd64p32",