Skip to content

Commit ba98881

Browse files
author
Max Schaefer
authored
Fix likely typo of exclusive-or for exponentiation
I'm guessing `2^20` (= 22) is a typo for `1<<20` (= 2<sup>20</sup>).
1 parent de43c03 commit ba98881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artifact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (a Artifact) getMD5local(path string) string {
107107
if err != nil {
108108
return ""
109109
}
110-
buffer := make([]byte, 2^20)
110+
buffer := make([]byte, 1<<20)
111111
n, err := localFile.Read(buffer)
112112
defer localFile.Close()
113113
for err == nil {

0 commit comments

Comments
 (0)