Skip to content

Commit 9469a75

Browse files
authored
fix(docs): correct import statement for event emission in Rust documentation (#3127)
1 parent d6d3d44 commit 9469a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/develop/calling-rust.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ Global events are delivered to **all** listeners
642642
To trigger an event to a listener registered by a specific webview you can use the [event.emitTo] or the [WebviewWindow#emitTo] functions:
643643

644644
```js
645-
import { emit } from '@tauri-apps/api/event';
645+
import { emitTo } from '@tauri-apps/api/event';
646646
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow';
647647

648648
// emitTo(webviewLabel, eventName, payload)

0 commit comments

Comments
 (0)