Skip to content
Snippets Groups Projects
Unverified Commit 393c3d68 authored by Johan Klokkhammer Helsing's avatar Johan Klokkhammer Helsing Committed by GitHub
Browse files

docs: Fix panic in example chapter 1

Also copied from the hello_world example
parent f972ad42
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ fn startup( ...@@ -20,6 +20,7 @@ fn startup(
font_mapping.set_default(asset_server.load("roboto.kayak_font")); font_mapping.set_default(asset_server.load("roboto.kayak_font"));
let mut widget_context = KayakRootContext::new(); let mut widget_context = KayakRootContext::new();
widget_context.add_plugin(KayakWidgetsContextPlugin);
let parent_id = None; let parent_id = None;
// The rsx! macro expects a parent_id, a widget_context from the user. // The rsx! macro expects a parent_id, a widget_context from the user.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment