Ver código fonte

#57 copy bytes

Tao Wen 8 anos atrás
pai
commit
3c8bd9ef54
1 arquivos alterados com 1 adições e 1 exclusões
  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
 }