Skip to content

Commit d39fc65

Browse files
Add reference to function arguments so the type is correctly inferred
1 parent 153e412 commit d39fc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/tauri/src/webview/webview_window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
139139
/// let mut conf = &app.config().app.windows.iter().find(|c| c.label == "template-for-multiwindow").unwrap().clone();
140140
/// // This should be a unique label for all windows. For example, we can use a random UUID:
141141
/// conf.label = format!("my-multiwindow-{}", uuid::Uuid::new_v4());
142-
/// let webview_window = tauri::WebviewWindowBuilder::from_config(&app, conf)
142+
/// let webview_window = tauri::WebviewWindowBuilder::from_config(&app, &conf)
143143
/// .unwrap()
144144
/// .build()
145145
/// .unwrap();

0 commit comments

Comments
 (0)