소스 검색

#57 copy bytes

Tao Wen 8 년 전
부모
커밋
3c8bd9ef54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      feature_config.go

+ 1 - 1
feature_config.go

@@ -153,7 +153,7 @@ func (cfg *frozenConfig) MarshalToString(v interface{}) (string, error) {
 	defer cfg.returnStream(stream)
 	stream.WriteVal(v)
 	if stream.Error != nil {
-		return nil, stream.Error
+		return "", stream.Error
 	}
 	return string(stream.Buffer()), nil
 }