docs: fix web doc example and use &mut for builders everywhere

This commit is contained in:
Jonathan Kelley committed 2022-01-24 20:24:50 -05:00
1 parent 732ec018c3
commit a239d2ba6a
2 files changed
+33 -6

No files matched your search

+1 -1
View File
@@ -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();