From 8b0e519eac67ee033522455c6a7b11839920c356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=81=E6=A2=A6=E5=A4=A9=E6=B6=AF?= Date: Wed, 20 May 2026 09:29:49 +0800 Subject: [PATCH] Adjust the order of the parameters in `call_function_with_apply` to conform to... --- pages/docs/concepts/function.en.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/concepts/function.en.mdx b/pages/docs/concepts/function.en.mdx index 4942280d..ef80dacf 100644 --- a/pages/docs/concepts/function.en.mdx +++ b/pages/docs/concepts/function.en.mdx @@ -153,8 +153,8 @@ impl RustClass { #[napi] pub fn call_function_with_apply( - callback: Function<(), ()>, this: ClassInstance, + callback: Function<(), ()>, ) -> Result<()> { callback.apply(this, ()) } @@ -210,4 +210,4 @@ pub fn build_threadsafe_function_from_function( Ok(()) } -``` \ No newline at end of file +```