Rollup merge of #36521 - Mark-Simulacrum:documentation-fix, r=apasel422

Fix language in documentation comment.
This commit is contained in:
Jonathan Turner 2016-09-16 09:29:49 -07:00 committed by GitHub
commit ab7425dcd4

View File

@ -201,7 +201,7 @@ pub fn intersects(&self, other: $BitFlags) -> bool {
!(*self & other).is_empty()
}
/// Returns `true` all of the flags in `other` are contained within `self`.
/// Returns `true` if all of the flags in `other` are contained within `self`.
#[inline]
pub fn contains(&self, other: $BitFlags) -> bool {
(*self & other) == other