Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Commit 7f43659

Browse files
gofmt
1 parent ba6a276 commit 7f43659

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crypto/encrypt.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const (
2020
)
2121

2222
var (
23-
// ErrInsufficientLen is an error when supplied ciphertext is not
24-
// long enough to contain a nonce.
23+
// ErrInsufficientLen is an error when supplied ciphertext is not
24+
// long enough to contain a nonce.
2525
ErrInsufficientLen = errors.New("supplied ciphertext is not long enough to contain a nonce")
2626
)
2727

@@ -100,7 +100,7 @@ func (c Ciphertext) MarshalJSON() ([]byte, error) {
100100
return json.Marshal([]byte(c))
101101
}
102102

103-
// UnmarshalJSON parses the JSON-encoded b and returns an instance of
103+
// UnmarshalJSON parses the JSON-encoded b and returns an instance of
104104
// CipherText.
105105
func (c *Ciphertext) UnmarshalJSON(b []byte) error {
106106
var umarB []byte

crypto/hash.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ import (
1919
)
2020

2121
const (
22-
// HashSize is the length of a Hash in bytes.
22+
// HashSize is the length of a Hash in bytes.
2323
HashSize = 32
2424
)
2525

2626
type (
27-
// Hash is a BLAKE2b 256-bit digest.
27+
// Hash is a BLAKE2b 256-bit digest.
2828
Hash [HashSize]byte
2929

3030
// HashSlice is used for sorting
3131
HashSlice []Hash
3232
)
3333

3434
var (
35-
// ErrHashWrongLen is the error when encoded value has the wrong
36-
// length to be a hash.
35+
// ErrHashWrongLen is the error when encoded value has the wrong
36+
// length to be a hash.
3737
ErrHashWrongLen = errors.New("encoded value has the wrong length to be a hash")
3838
)
3939

0 commit comments

Comments
 (0)