Skip to content

Commit

Permalink
Update packages/yew/src/callback.rs
Browse files Browse the repository at this point in the history
Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
  • Loading branch information
ctron and WorldSEnder committed Sep 9, 2022
1 parent 3259383 commit 45733d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/yew/src/callback.rs
Expand Up @@ -83,9 +83,9 @@ impl<IN: 'static, OUT: 'static> Callback<IN, OUT> {
}

impl<IN: 'static> Callback<IN> {
/// Creates a new callback from another callback and a function
/// That when emitted will call that function and will emit the original callback if it is
/// not `None`.
/// Creates a new callback from another callback and a function.
/// When emitted will call the function and, only if it returns `Some(value)`, will emit
/// `value` to the original callback.
pub fn filter_reform<F, T>(&self, func: F) -> Callback<T>
where
F: Fn(T) -> Option<IN> + 'static,
Expand Down

0 comments on commit 45733d8

Please sign in to comment.