From ad5bd0970d7106a97d455a164a582ab1d0bff18b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 5 Aug 2022 06:01:54 +0200 Subject: Fix documentation in `operation::focusable` --- native/src/widget/operation/focusable.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/native/src/widget/operation/focusable.rs b/native/src/widget/operation/focusable.rs index d20bfef9..f17bf178 100644 --- a/native/src/widget/operation/focusable.rs +++ b/native/src/widget/operation/focusable.rs @@ -54,7 +54,8 @@ pub fn focus(target: Id) -> impl Operation { Focus { target } } -/// Produces an [`Operation`] that generates a [`Count`]. +/// Produces an [`Operation`] that generates a [`Count`] and chains it with the +/// provided function to build a new [`Operation`]. pub fn count(f: fn(Count) -> O) -> impl Operation where O: Operation + 'static, @@ -95,7 +96,7 @@ where } } -/// Produces an [`Operation`] that searches for the current focuses widget, and +/// Produces an [`Operation`] that searches for the current focused widget, and /// - if found, focuses the previous focusable widget. /// - if not found, focuses the last focusable widget. pub fn focus_previous() -> impl Operation { @@ -134,7 +135,7 @@ pub fn focus_previous() -> impl Operation { count(|count| FocusPrevious { count, current: 0 }) } -/// Produces an [`Operation`] that searches for the current focuses widget, and +/// Produces an [`Operation`] that searches for the current focused widget, and /// - if found, focuses the next focusable widget. /// - if not found, focuses the first focusable widget. pub fn focus_next() -> impl Operation { -- cgit