[example_web] Fix link to own source code

This commit is contained in:
Emil Ernerfeldt 2020-11-18 01:20:35 +01:00
parent 7249fc45d0
commit 9c8a3a994f
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View file

@ -45,8 +45,10 @@ impl egui::app::App for ExampleApp {
trigger_fetch = true; trigger_fetch = true;
} }
if ui.button("Source code for this file").clicked { if ui.button("Source code for this file").clicked {
self.url = self.url = format!(
format!("https://raw.githubusercontent.com/emilk/egui/{}", file!()); "https://raw.githubusercontent.com/emilk/egui/master/{}",
file!()
);
trigger_fetch = true; trigger_fetch = true;
} }
}); });