Update crates/napi/src/bindgen_runtime/js_values/function.rs

This commit is contained in:
LongYinan 2024-01-25 23:46:57 +08:00
parent 5be7ab0f6b
commit fecd0d8049
No known key found for this signature in database
GPG key ID: 30B1140CE1C07C99

View file

@ -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,