Wrong docstring for nanocbor_put_bstr
TimothyClaeys opened this issue · comments
Timothy Claeys commented
The docstring on nanocbor_put_bstr
states that the return value is the number of bytes written.
NanoCBOR/include/nanocbor/nanocbor.h
Line 608 in 97e8cbe
If you look at the source code the return value depends on the call to _fits
which either returns 0 or -1. The docstring should probably be updated to something like: