Explorar o código

Fixed golint and misspell.

Pierre Curto %!s(int64=6) %!d(string=hai) anos
pai
achega
73dd3ab8f6
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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
 	var si int
 
 
 	// hashTable: stores the last position found for a given hash
 	// 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
 	var hashTable, chainTable [winSize]int
 
 
 	if depth <= 0 {
 	if depth <= 0 {

+ 1 - 1
fuzz/lz4.go

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