summaryrefslogtreecommitdiff
path: root/framing/framing.go
diff options
context:
space:
mode:
Diffstat (limited to 'framing/framing.go')
-rw-r--r--framing/framing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/framing/framing.go b/framing/framing.go
index 66eeff5..48d12c3 100644
--- a/framing/framing.go
+++ b/framing/framing.go
@@ -287,7 +287,7 @@ func (decoder *Decoder) Decode(data []byte, frames *bytes.Buffer) (int, error) {
}
out, ok := secretbox.Open(data[:0], box[:n], &decoder.nextNonce, &decoder.key)
if !ok || decoder.nextLengthInvalid {
- // When a random lenght is used (on length error) the tag should always
+ // When a random length is used (on length error) the tag should always
// mismatch, but be paranoid.
return 0, ErrTagMismatch
}