Darien Raymond 9 年之前
父节点
当前提交
09c0fa558a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tools/conf/json/reader.go

+ 2 - 0
tools/conf/json/reader.go

@@ -20,11 +20,13 @@ const (
 	StateMultilineCommentStar
 )
 
+// Reader is a JSON reader which allows comments.
 type Reader struct {
 	io.Reader
 	state State
 }
 
+// Read implements io.Reader.Read().
 func (v *Reader) Read(b []byte) (int, error) {
 	n, err := v.Reader.Read(b)
 	if err != nil {