docs: fix web doc example and use &mut for builders everywhere
This commit is contained in:
1 parent
732ec018c3
commit
a239d2ba6a
2 files changed
+33
-6
No files matched your search
@@ -149,7 +149,7 @@ pub fn launch_with_props<P: 'static + Send>(
|
||||
props: P,
|
||||
builder: impl FnOnce(&mut DesktopConfig) -> &mut DesktopConfig,
|
||||
) {
|
||||
let mut cfg = DesktopConfig::new();
|
||||
let mut cfg = DesktopConfig::default();
|
||||
builder(&mut cfg);
|
||||
|
||||
let event_loop = EventLoop::with_user_event();
|
||||
|
||||
Reference in new issue
Block a user