Selaa lähdekoodia

#57 copy bytes

Tao Wen 8 vuotta sitten
vanhempi
commit
3c8bd9ef54
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 }