Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
update code example in readme
  • Loading branch information
edvorg authored Aug 28, 2024
1 parent c7fb51a commit fac4bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let mut toasts = Toasts::default();

```rust
// somewhere within [egui::App::update]...
toasts.info("Hello world!").set_duration(Duration::from_secs(5));
toasts.info("Hello world!").set_duration(Some(Duration::from_secs(5)));
// ...
toasts.show(ctx);
```
Expand Down

0 comments on commit fac4bf0

Please sign in to comment.