# HG changeset patch
# User Georges Racinet <georges.racinet@octobus.net>
# Date 2023-04-03 13:58:36
# Node ID e2c8b30ab4e73e8bb2f9ce42fe33f005e66bcda3
# Parent  331a3cbe1c9ee186137525204ed9fbd6e22b4137

rustdoc: wording for checkexec

Notably separating the summary line for correct display
at module level.

diff --git a/rust/hg-core/src/checkexec.rs b/rust/hg-core/src/checkexec.rs
--- a/rust/hg-core/src/checkexec.rs
+++ b/rust/hg-core/src/checkexec.rs
@@ -112,8 +112,10 @@ fn check_exec_impl(path: impl AsRef<Path
     Ok(false)
 }
 
-/// This function is a rust rewrite of `checkexec` function from `posix.py`
-/// Returns true if the filesystem supports execute permissions.
+/// This function is a Rust rewrite of the `checkexec` function from
+/// `posix.py`.
+///
+/// Returns `true` if the filesystem supports execute permissions.
 pub fn check_exec(path: impl AsRef<Path>) -> bool {
     check_exec_impl(path).unwrap_or(false)
 }