From 4852d25f51e8301ec1dbcae57e2883998b024d94 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 22 Feb 2019 10:26:56 -0800 Subject: [PATCH] Fix doc for Finder::call_on --- src/view/finder.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,