Skip to content

Commit

Permalink
Fix silly sed error
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 24, 2015
1 parent 384ead4 commit 39e098a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phf/src/ordered_set.rs
Expand Up @@ -94,7 +94,7 @@ impl<T> OrderedSet<T> {
impl<T> OrderedSet<T> where T: Eq + PhfHash {
/// Returns true if `other` shares no elements with `self`.
#[inline]
pub fn is_disjoisize(&self, other: &OrderedSet<T>) -> bool {
pub fn is_disjoint(&self, other: &OrderedSet<T>) -> bool {
!self.iter().any(|value| other.contains(value))
}

Expand Down
2 changes: 1 addition & 1 deletion phf/src/set.rs
Expand Up @@ -84,7 +84,7 @@ impl<T> Set<T> {

impl<T> Set<T> where T: Eq + PhfHash {
/// Returns true if `other` shares no elements with `self`.
pub fn is_disjoisize(&self, other: &Set<T>) -> bool {
pub fn is_disjoint(&self, other: &Set<T>) -> bool {
!self.iter().any(|value| other.contains(value))
}

Expand Down

0 comments on commit 39e098a

Please sign in to comment.