Skip to content

Commit f45487a

Browse files
Style: Typo
1 parent 2589f58 commit f45487a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

signature/signature.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package signature
2-
31
/*
42
Package signature implements signature verification for MessageBird webhooks.
53
@@ -21,6 +19,7 @@ this value, set the ValidityWindow to the disired duration.
2119
Take into account that the validity window works around the current time:
2220
[now - ValidityWindow/2, now + ValidityWindow/2]
2321
*/
22+
package signature
2423

2524
import (
2625
"bytes"
@@ -43,7 +42,7 @@ const (
4342
// ValidityWindow defines the time window in which to validate a request.
4443
var ValidityWindow = 5 * time.Second
4544

46-
// StringToTime converts from Unicod Epoch enconded timestamps to time.Time Go objects.
45+
// StringToTime converts from Unicode Epoch encoded timestamps to the time.Time type.
4746
func stringToTime(s string) (time.Time, error) {
4847
sec, err := strconv.ParseInt(s, 10, 64)
4948
if err != nil {

0 commit comments

Comments
 (0)