@@ -11,7 +11,7 @@ Event called when a component is added to the tree.
1111fn on_init(
1212 &mut self,
1313 state: &mut Self::State,
14- mut elements : Children<'_, '_>,
14+ mut children : Children<'_, '_>,
1515 mut context: Context<'_, '_, Self::State>,
1616) { }
1717```
@@ -25,7 +25,7 @@ storage.
2525fn on_unmount(
2626 &mut self,
2727 state: &mut Self::State,
28- mut elements : Children<'_, '_>,
28+ mut children : Children<'_, '_>,
2929 mut context: Context<'_, '_, Self::State>,
3030) { }
3131```
@@ -39,7 +39,7 @@ fn on_key(
3939 &mut self,
4040 key: KeyEvent,
4141 state: &mut Self::State,
42- mut elements : Children<'_, '_>,
42+ mut children : Children<'_, '_>,
4343 mut context: Context<'_, '_, Self::State>,
4444) { }
4545```
@@ -53,7 +53,7 @@ fn on_mouse(
5353 &mut self,
5454 mouse: MouseEvent,
5555 state: &mut Self::State,
56- mut elements : Children<'_, '_>,
56+ mut children : Children<'_, '_>,
5757 mut context: Context<'_, '_, Self::State>,
5858) { }
5959```
@@ -66,7 +66,7 @@ The component gained focus.
6666fn on_focus(
6767 &mut self,
6868 state: &mut Self::State,
69- mut elements : Children<'_, '_>,
69+ mut children : Children<'_, '_>,
7070 mut context: Context<'_, '_, Self::State>,
7171) { }
7272```
@@ -79,7 +79,7 @@ The component lost focus.
7979fn on_blur(
8080 &mut self,
8181 state: &mut Self::State,
82- mut elements : Children<'_, '_>,
82+ mut children : Children<'_, '_>,
8383 mut context: Context<'_, '_, Self::State>,
8484) {}
8585```
0 commit comments