From b8a77dc8bd87765d12e090f63ab2519180f52b82 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 4 Nov 2024 19:43:29 +0200 Subject: [PATCH] update comments --- src/app/browser.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/browser.rs b/src/app/browser.rs index 9cb9ec32..e47806f6 100644 --- a/src/app/browser.rs +++ b/src/app/browser.rs @@ -275,8 +275,8 @@ pub fn migrate(tx: &Transaction) -> Result<(), String> { // Private helpers @TODO move outside -/// Extract formatted page position from C-based -/// [action state](https://docs.gtk.org/gio/property.SimpleAction.state.html) +/// Extract `Optional` page position from C-based +/// [SimpleAction state](https://docs.gtk.org/gio/property.SimpleAction.state.html) fn page_position_from_action_state(action: &SimpleAction) -> Option { let page_position = action .state() @@ -291,8 +291,7 @@ fn page_position_from_action_state(action: &SimpleAction) -> Option { } } -/// Extract `String` from C-based -/// [Variant](https://docs.gtk.org/glib/struct.Variant.html) +/// Extract `String` from [Variant](https://docs.gtk.org/glib/struct.Variant.html) fn string_from_variant(variant: Option<&Variant>) -> String { variant .expect("Variant required for this action")