Skip to content

Commit

Permalink
book: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Oct 20, 2023
1 parent 997f66e commit 0a999f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/listings/main_event_loop/7/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ fn build_ui(app: &Application) {
let main_context = MainContext::default();
// The main loop executes the asynchronous block
main_context.spawn_local(clone!(@weak button => async move {
// Get native of button for window indentifier
// Get native of button for window identifier
let native = button.native().expect("Need to be able to get native.");
// Get window identifier so that the dialog will be modal to the main window
let identifier = WindowIdentifier::from_native(&native).await;
let request = UserInformation::request()
.reason("App would like to access user information")
.reason("App would like to access user information.")
.identifier(identifier)
.send()
.await;
Expand Down

0 comments on commit 0a999f4

Please sign in to comment.