mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
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 <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
2780627062
commit
f1bc736245
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user