Skip to content

Commit

Permalink
Fix another doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 24, 2023
1 parent 56d18a8 commit 61378ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,10 @@ impl Context {
/// Equivalent to:
/// ```
/// # let ctx = egui::Context::default();
/// # let open_url = crate::output::OpenUrl::same_tab("http://www.example.com");
/// ctx.output_mut(|o| o.open_url = Some(open_url);
/// # let open_url = egui::OpenUrl::same_tab("http://www.example.com");
/// ctx.output_mut(|o| o.open_url = Some(open_url));
/// ```
pub fn open_url(&self, open_url: crate::output::OpenUrl) {
pub fn open_url(&self, open_url: crate::OpenUrl) {
self.output_mut(|o| o.open_url = Some(open_url));
}

Expand Down

0 comments on commit 61378ab

Please sign in to comment.