]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Documentation for ZSTD_CCtxParams_setParameter() 2270/head
authorW. Felix Handte <w@felixhandte.com>
Fri, 14 Aug 2020 18:44:08 +0000 (14:44 -0400)
committerW. Felix Handte <w@felixhandte.com>
Fri, 14 Aug 2020 18:44:08 +0000 (14:44 -0400)
It does not only return 0 on success.

lib/zstd.h

index 3a012fda281978e79bce1d7289f096b45e1d46d0..2cb82d7a1897476203fd1c9815203116c0e0b5b3 100644 (file)
@@ -1570,8 +1570,10 @@ ZSTDLIB_API size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, Z
 /*! ZSTD_CCtxParams_setParameter() :
  *  Similar to ZSTD_CCtx_setParameter.
  *  Set one compression parameter, selected by enum ZSTD_cParameter.
- *  Parameters must be applied to a ZSTD_CCtx using ZSTD_CCtx_setParametersUsingCCtxParams().
- * @result : 0, or an error code (which can be tested with ZSTD_isError()).
+ *  Parameters must be applied to a ZSTD_CCtx using
+ *  ZSTD_CCtx_setParametersUsingCCtxParams().
+ * @result : a code representing success or failure (which can be tested with
+ *           ZSTD_isError()).
  */
 ZSTDLIB_API size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int value);