diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/crypto/subtle/constant_time.go | 2 | ||||
-rw-r--r-- | src/pkg/encoding/binary/binary_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/subtle/constant_time.go b/src/pkg/crypto/subtle/constant_time.go index edbfa84fb..79a96ec96 100644 --- a/src/pkg/crypto/subtle/constant_time.go +++ b/src/pkg/crypto/subtle/constant_time.go @@ -23,7 +23,7 @@ func ConstantTimeCompare(x, y []byte) int { // Its behavior is undefined if v takes any other value. func ConstantTimeSelect(v, x, y int) int { return ^(v-1)&x | (v-1)&y } -// ConstantTimeByteEq returns 1 if x == x and 0 otherwise. +// ConstantTimeByteEq returns 1 if x == y and 0 otherwise. func ConstantTimeByteEq(x, y uint8) int { z := ^(x ^ y); z &= z >> 4; diff --git a/src/pkg/encoding/binary/binary_test.go b/src/pkg/encoding/binary/binary_test.go index 078a13a53..71c6875cc 100644 --- a/src/pkg/encoding/binary/binary_test.go +++ b/src/pkg/encoding/binary/binary_test.go @@ -81,6 +81,6 @@ little: t.Errorf("Read little-endian: %v", err) } if !reflect.DeepEqual(sl, s) { - t.Errorf("Read big-endian:\n\thave %+v\n\twant %+v", sl, s) + t.Errorf("Read little-endian:\n\thave %+v\n\twant %+v", sl, s) } } |