Parcourir la source

#57 copy bytes

Tao Wen il y a 8 ans
Parent
commit
3c8bd9ef54
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 }