File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ func SHA3_512(p []byte) (sum [64]byte) {
113
113
114
114
var isMarshallableMap sync.Map
115
115
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.
118
118
func isHashMarshallable (cb crypto.Hash ) bool {
119
119
if vMajor == 1 {
120
120
return true
@@ -135,7 +135,7 @@ func isHashMarshallable(cb crypto.Hash) bool {
135
135
return false
136
136
}
137
137
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.
139
139
// See evpHash.hashState for more details.
140
140
marshallable := name == "default" || name == "fips"
141
141
isMarshallableMap .Store (cb , marshallable )
You can’t perform that action at this time.
0 commit comments