summaryrefslogtreecommitdiffstats
path: root/examples/toast
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-06 00:02:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-06 00:02:46 +0100
commite5f1e31a5c068fe992cab076661cb6e2d120bdf1 (patch)
treee4be53b3bf9c73868f6694378a0eea670e270f52 /examples/toast
parent03bffe3db61b51d9e28f42c5bfea421b5612c484 (diff)
downloadiced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.gz
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.tar.bz2
iced-e5f1e31a5c068fe992cab076661cb6e2d120bdf1.zip
Rename `Overlay::on_event` to `update`
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 893c52e2..8d1e3924 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -489,7 +489,7 @@ mod toast {
.translate(Vector::new(self.position.x, self.position.y))
}
- fn on_event(
+ fn update(
&mut self,
event: Event,
layout: Layout<'_>,