error handling bug fixes, other code tidying
diff --git a/inc/qcbor/qcbor_encode.h b/inc/qcbor/qcbor_encode.h
index 46fa578..ba18167 100644
--- a/inc/qcbor/qcbor_encode.h
+++ b/inc/qcbor/qcbor_encode.h
@@ -1298,7 +1298,7 @@
 
  @param[in] pCtx  The encoding context.
 
- @return One of \ref QCBORError. See return values from
+ @return One of @ref QCBORError. See return values from
          QCBOREncode_Finish()
 
  Normally encoding errors need only be handled at the end of encoding