Skip to content

Commit

Permalink
Merge pull request #5129 from nouritsu/main
Browse files Browse the repository at this point in the history
docs(bin,has): add docstrings for macros bin and has
  • Loading branch information
cakebaker committed Aug 3, 2023
2 parents f37318d + 773e690 commit 9be4a89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uucore/src/lib/features/fs.rs
Expand Up @@ -31,6 +31,9 @@ use std::path::{Component, Path, PathBuf, MAIN_SEPARATOR};
#[cfg(target_os = "windows")]
use winapi_util::AsHandleRef;

/// Used to check if the `mode` has its `perm` bit set.
///
/// This macro expands to `mode & perm != 0`.
#[cfg(unix)]
#[macro_export]
macro_rules! has {
Expand Down
4 changes: 4 additions & 0 deletions src/uucore/src/lib/lib.rs
Expand Up @@ -86,6 +86,10 @@ use std::sync::atomic::Ordering;

use once_cell::sync::Lazy;

/// Execute utility code for `util`.
///
/// This macro expands to a main function that invokes the `uumain` function in `util`
/// Exits with code returned by `uumain`.
#[macro_export]
macro_rules! bin {
($util:ident) => {
Expand Down

0 comments on commit 9be4a89

Please sign in to comment.