Skip to content

Commit

Permalink
auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton
Browse files Browse the repository at this point in the history
Closes #17210
  • Loading branch information
bors committed Sep 17, 2014
2 parents e719db2 + 06e85fd commit aac078d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/bitflags.rs
Expand Up @@ -170,6 +170,7 @@ macro_rules! bitflags {
}

/// Returns `true` all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool {
(self & other) == other
}
Expand Down

0 comments on commit aac078d

Please sign in to comment.