Update cborencoder.c documentation

Fixed the error checking example proposed in the comments/documentation at the beginning of the file.
Changed occurrences of `if(!err)` to `if(err)`, and `cbor_assert(err)` to `cbor_assert(!err)`.

Signed-off-by: Elie El Khoury <eliekhoury@hotmail.de>
1 file changed