Skip to content

Commit e4c84d1

Browse files
committed
fix(ndsp): fix typo
1 parent 8ebc789 commit e4c84d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/nsdp/crypto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
// FixedLengthXOR creates a fixed-length XOR encryption of the given data.
99
// The length of the hash will be the minimum length of the data and the key.
1010
func FixedLengthXOR(data []byte, key []byte) []byte {
11-
// Suprisingly, Golang does not have a built-in `min` function for integers,
11+
// Surprisingly, Golang does not have a built-in `min` function for integers,
1212
// so we have to resort to this ugliness.
1313
length := int(math.Min(float64(len(data)), float64(len(key))))
1414
hash := make([]byte, length)

0 commit comments

Comments
 (0)