antirez / sds

Simple Dynamic Strings library for C
BSD 2-Clause "Simplified" License
4.93k stars 480 forks source link

Add note about sdsnewlen(0, ...) to readme #137

Open miasujii opened 3 years ago

miasujii commented 3 years ago

It's convenient that sdsnewlen accepts 0 as a first argument, giving us a way to create an empty buffer of a given length. It would be nice to document this in the readme.

I don't know how the wording should be, but it felt lazy to not make a PR for such a small change. Feel free to close this PR and use whatever wording you like ;-)