瀏覽代碼

Fix some comment styles.

Nigel Tao 9 年之前
父節點
當前提交
624b11c0e0
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 0
      decode.go
  2. 2 1
      encode.go

+ 1 - 0
decode.go

@@ -46,6 +46,7 @@ func decodedLen(src []byte) (blockLen, headerLen int, err error) {
 // Decode returns the decoded form of src. The returned slice may be a sub-
 // slice of dst if dst was large enough to hold the entire decoded block.
 // Otherwise, a newly allocated slice will be returned.
+//
 // It is valid to pass a nil dst.
 func Decode(dst, src []byte) ([]byte, error) {
 	dLen, s, err := decodedLen(src)

+ 2 - 1
encode.go

@@ -10,7 +10,8 @@ import (
 	"io"
 )
 
-// We limit how far copy back-references can go, the same as the C++ code.
+// maxOffset limits how far copy back-references can go, the same as the C++
+// code.
 const maxOffset = 1 << 15
 
 // emitLiteral writes a literal chunk and returns the number of bytes written.