specta-rs / tauri-specta

Completely typesafe Tauri commands
MIT License
368 stars 40 forks source link

missing Ok(()) in docs #100

Closed Zercerium closed 4 months ago

Zercerium commented 4 months ago

Hi, thanks for specta.

There is a missing Ok(()) in this position https://github.com/oscartbeaumont/tauri-specta/blob/main/docs/v2.md#events

https://github.com/oscartbeaumont/tauri-specta/blob/1ad0a71a70239ed506c628bc2b808994285a8d94/docs/v2.md?plain=1#L112-L114

    tauri::Builder::default()
        .invoke_handler(invoke_handler)
       .setup(|app| {
           register_events(app);
+        Ok(())
       })
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
oscartbeaumont commented 4 months ago

Thanks!