Forráskód Böngészése

fix(core): WindowBuilder::from_config documentation example

Lucas Nogueira 2 éve
szülő
commit
2455328f81
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      core/tauri/src/window.rs

+ 1 - 1
core/tauri/src/window.rs

@@ -204,7 +204,7 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> {
   /// ```
   /// #[tauri::command]
   /// async fn reopen_window(app: tauri::AppHandle) {
-  ///   let window = tauri::WindowBuilder::from_config(&app, app.config().tauri.windows.get(0).unwrap())
+  ///   let window = tauri::WindowBuilder::from_config(&app, app.config().tauri.windows.get(0).unwrap().clone())
   ///     .build()
   ///     .unwrap();
   /// }