multiformats / go-multistream

an implementation of the multistream protocol in go
MIT License
40 stars 27 forks source link

Fix typo in unexported function name #103

Open mark-rushakoff opened 1 year ago

mark-rushakoff commented 1 year ago

It looks like this was supposed to be "delim" write all -- "delitm" doesn't mean anything.

Also skip casting the bytes slice to a string before formatting as %s, as the cast is redundant; and prefer %w for wrapping an error, for potential later use of errors.Is or errors.As.