rustdoc: wording for checkexec
authorGeorges Racinet <georges.racinet@octobus.net>
Mon, 03 Apr 2023 15:58:36 +0200
changeset 50416 e2c8b30ab4e7
parent 50415 331a3cbe1c9e
child 50417 d27b6fc7c1bf
rustdoc: wording for checkexec Notably separating the summary line for correct display at module level.
rust/hg-core/src/checkexec.rs
--- a/rust/hg-core/src/checkexec.rs	Mon Apr 03 15:32:39 2023 +0200
+++ b/rust/hg-core/src/checkexec.rs	Mon Apr 03 15:58:36 2023 +0200
@@ -112,8 +112,10 @@
     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)
 }