Skip to content

Commit

Permalink
Fix imprecise documentation in Pop::on_show
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 2, 2025
1 parent e78d7f0 commit e73d0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/pop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e73d0c6

Please sign in to comment.