From fecd0d804962b3d0a5cb3e2849e65d4ada86769c Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 25 Jan 2024 23:46:57 +0800 Subject: [PATCH] Update crates/napi/src/bindgen_runtime/js_values/function.rs --- crates/napi/src/bindgen_runtime/js_values/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/napi/src/bindgen_runtime/js_values/function.rs b/crates/napi/src/bindgen_runtime/js_values/function.rs index f9523b42..1805c4e0 100644 --- a/crates/napi/src/bindgen_runtime/js_values/function.rs +++ b/crates/napi/src/bindgen_runtime/js_values/function.rs @@ -13,7 +13,7 @@ impl ValidateNapiValue for JsFunction {} /// A JavaScript function. /// It can only live in the scope of a function call. /// If you want to use it outside the scope of a function call, you can turn it into a reference. -/// By calling the `into_ref` method. +/// By calling the `create_ref` method. pub struct Function<'scope, Args: JsValuesTupleIntoVec, Return: FromNapiValue> { pub(crate) env: sys::napi_env, pub(crate) value: sys::napi_value,