From 7014765988faeba5aa7cd46f08f7a3a6f25d4eec Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Tue, 8 Oct 2024 14:55:16 +0200 Subject: [PATCH] Improve docs for fragment checker --- lychee-lib/src/utils/fragment_checker.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lychee-lib/src/utils/fragment_checker.rs b/lychee-lib/src/utils/fragment_checker.rs index 57016e124e..064d550ac3 100644 --- a/lychee-lib/src/utils/fragment_checker.rs +++ b/lychee-lib/src/utils/fragment_checker.rs @@ -37,10 +37,10 @@ impl FragmentChecker { } } - /// Checks the given path contains the given fragment. + /// Checks if the given path contains the given fragment. /// - /// Returns false, if there is a fragment in the link and the path is to a markdown file which - /// doesn't contain the given fragment. + /// Returns false, if there is a fragment in the link and the path is to a + /// Markdown file, which doesn't contain the given fragment. /// /// In all other cases, returns true. pub(crate) async fn check(&self, path: &Path, url: &Url) -> Result {