Skip to content

Commit 20359bd

Browse files
authored
Merge pull request #1224 from DanielEScherzer/document-bit-set
Add documentation to bitflag methods for checking flags
2 parents 2a01a61 + 26d0eab commit 20359bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub use crate::worktree::{Worktree, WorktreeAddOptions, WorktreeLockStatus, Work
152152
// Create a convinience method on bitflag struct which checks the given flag
153153
macro_rules! is_bit_set {
154154
($name:ident, $flag:expr) => {
155-
#[allow(missing_docs)]
155+
#[doc = concat!("Check if the ", stringify!($flag), " is set.")]
156156
pub fn $name(&self) -> bool {
157157
self.intersects($flag)
158158
}

0 commit comments

Comments
 (0)