diff --git a/src/view/finder.rs b/src/view/finder.rs index eb1fac0..815569d 100644 --- a/src/view/finder.rs +++ b/src/view/finder.rs @@ -10,10 +10,12 @@ use views::{IdView, ViewRef}; /// /// [`View::call_on_any`]: ./trait.View.html#method.call_on_any pub trait Finder { - /// Tries to find the view pointed to by the given selector. + /// Runs a callback on the view identified by `sel`. + /// + /// If the view is found, return the result of `callback`. /// /// If the view is not found, or if it is not of the asked type, - /// it returns None. + /// it returns `None`. fn call_on(&mut self, sel: &Selector, callback: F) -> Option where V: View + Any,