Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/docs/concepts/function.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ impl RustClass {

#[napi]
pub fn call_function_with_apply(
callback: Function<(), ()>,
this: ClassInstance<RustClass>,
callback: Function<(), ()>,
) -> Result<()> {
callback.apply(this, ())
}
Expand Down Expand Up @@ -210,4 +210,4 @@ pub fn build_threadsafe_function_from_function(

Ok(())
}
```
```