Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Dec 3, 2023
1 parent 8c733e1 commit 4fc4f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type decryptor struct {
*processor
}

// Read len(b) bytes from decryptor's source (file) into buffer b, truncate it if n < len(b),
// Read up to len(b) bytes from decryptor's source (file) into buffer b, truncate it if n < len(b),
// XOR it and return number of bytes read and error.
func (d *decryptor) Read(b []byte) (int, error) {
n, err := d.source.Read(b)
Expand Down
2 changes: 1 addition & 1 deletion core/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type encryptor struct {
*processor
}

// Read len(b) bytes from encryptor's source (file) into buffer b, truncate it if n < len(b),
// Read up to len(b) bytes from encryptor's source (file) into buffer b, truncate it if n < len(b),
// XOR it, update the encryptor's HMAC with the resulting slice,
// return number of bytes read and error.
func (e *encryptor) Read(b []byte) (int, error) {
Expand Down

0 comments on commit 4fc4f1a

Please sign in to comment.