Fix imprecise documentation in Pop::on_show

This commit is contained in:
Héctor Ramón Jiménez 2025-02-02 01:52:04 +01:00
parent e78d7f0e51
commit e73d0c65d2
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -43,7 +43,7 @@ where
/// Sets the message to be produced when the content pops into view.
///
/// The closure will receive the relative bounds of the content in that moment.
/// The closure will receive the [`Size`] of the content in that moment.
pub fn on_show(mut self, on_show: impl Fn(Size) -> Message + 'a) -> Self {
self.on_show = Some(Box::new(on_show));
self