Fix incorrect reference QCBORDecode_GetAndResetError in docs (#310)
Documentation-only change.
Co-authored-by: Giacomo Amante <giacomo@scandit.com>
diff --git a/inc/qcbor/qcbor_decode.h b/inc/qcbor/qcbor_decode.h
index 8c7a44c..b8605b5 100644
--- a/inc/qcbor/qcbor_decode.h
+++ b/inc/qcbor/qcbor_decode.h
@@ -122,13 +122,13 @@
* successfully decoded before examining their value or type.
*
* The internal decode error state can be reset by reinitializing the
- * decoder or calling QCBORDecode_GetErrorAndReset(). Code calling
+ * decoder or calling QCBORDecode_GetAndResetError(). Code calling
* QCBOR may take advantage of the internal error state to halt
* futher decoding and propagate errors it detects using
* QCBORDecode_SetError().
*
* It is only useful to reset the error state by calling
- * QCBORDecode_GetErrorAndReset() on recoverable errors. Examples of
+ * QCBORDecode_GetAndResetError() on recoverable errors. Examples of
* recoverable errors are a map entry not being found or integer
* overflow or underflow during conversion. Examples of unrecoverable
* errors are hitting the end of the input and array or map nesting