Browse Source

Fixed golint and misspell.

Pierre Curto 6 years ago
parent
commit
73dd3ab8f6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      block.go
  2. 1 1
      fuzz/lz4.go

+ 1 - 1
block.go

@@ -198,7 +198,7 @@ func CompressBlockHC(src, dst []byte, depth int) (di int, err error) {
 	var si int
 
 	// hashTable: stores the last position found for a given hash
-	// chaingTable: stores previous positions for a given hash
+	// chainTable: stores previous positions for a given hash
 	var hashTable, chainTable [winSize]int
 
 	if depth <= 0 {

+ 1 - 1
fuzz/lz4.go

@@ -7,7 +7,7 @@ import (
 	"github.com/pierrec/lz4"
 )
 
-// lz4.Reader fuzz function
+// Fuzz function for the Reader and Writer.
 func Fuzz(data []byte) int {
 	// uncompress some data
 	d, err := ioutil.ReadAll(lz4.NewReader(bytes.NewReader(data)))