Skip to content

Commit 6a23e2a

Browse files
qmuntaldagood
andauthored
Apply suggestions from code review
Co-authored-by: Davis Goodin <[email protected]>
1 parent c9c9a25 commit 6a23e2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hash.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ func SHA3_512(p []byte) (sum [64]byte) {
113113

114114
var isMarshallableMap sync.Map
115115

116-
// isHashMarshallable returns true if its memory layout
117-
// is known by this library, therefore it can be marshalled.
116+
// isHashMarshallable returns true if the memory layout of cb
117+
// is known by this library and can therefore be marshalled.
118118
func isHashMarshallable(cb crypto.Hash) bool {
119119
if vMajor == 1 {
120120
return true
@@ -135,7 +135,7 @@ func isHashMarshallable(cb crypto.Hash) bool {
135135
return false
136136
}
137137
name := C.GoString(cname)
138-
// We only known the memory layout of the built-in providers.
138+
// We only know the memory layout of the built-in providers.
139139
// See evpHash.hashState for more details.
140140
marshallable := name == "default" || name == "fips"
141141
isMarshallableMap.Store(cb, marshallable)

0 commit comments

Comments
 (0)