lib/storage: typo fix in MetricName.Unmarshal error

This commit is contained in:
Aliaksandr Valialkin 2022-07-06 01:32:47 +03:00
parent 1ec4dfd678
commit b4489028f3
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -404,7 +404,7 @@ func (mn *MetricName) UnmarshalString(s string) error {
// Unmarshal unmarshals mn from src.
func (mn *MetricName) Unmarshal(src []byte) error {
if len(src) < 8 {
return fmt.Errorf("too short src: %d bytes; must be at least % bytes", len(src), 8)
return fmt.Errorf("too short src: %d bytes; must be at least 8 bytes", len(src))
}
mn.AccountID = encoding.UnmarshalUint32(src)
mn.ProjectID = encoding.UnmarshalUint32(src[4:])