From 1ae8ba2d5d7c2653f5d28ad3e10c0f1bb82a2175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Wed, 23 Mar 2022 12:04:57 +0800 Subject: [PATCH] doc: wasm_functype_new takes ownership of its input (#3957) Signed-off-by: spacewander --- crates/c-api/include/doc-wasm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/c-api/include/doc-wasm.h b/crates/c-api/include/doc-wasm.h index 3be860342e..6bad15c744 100644 --- a/crates/c-api/include/doc-wasm.h +++ b/crates/c-api/include/doc-wasm.h @@ -359,6 +359,8 @@ * \brief Creates a new function type with the provided parameter and result * types. * + * This function takes ownership of the `params` and `results` arguments. + * * The caller is responsible for deleting the returned value. * * \fn const wasm_valtype_vec_t* wasm_functype_params(const wasm_functype_t *);