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 +```