From 39e098a7fb333cc046f4506f4c20cbc0d079c12f Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 24 Jan 2015 11:20:58 -0800 Subject: [PATCH] Fix silly sed error --- phf/src/ordered_set.rs | 2 +- phf/src/set.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phf/src/ordered_set.rs b/phf/src/ordered_set.rs index 1abc96af..3c4d53a3 100644 --- a/phf/src/ordered_set.rs +++ b/phf/src/ordered_set.rs @@ -94,7 +94,7 @@ impl OrderedSet { impl OrderedSet where T: Eq + PhfHash { /// Returns true if `other` shares no elements with `self`. #[inline] - pub fn is_disjoisize(&self, other: &OrderedSet) -> bool { + pub fn is_disjoint(&self, other: &OrderedSet) -> bool { !self.iter().any(|value| other.contains(value)) } diff --git a/phf/src/set.rs b/phf/src/set.rs index ddeb80bf..485996af 100644 --- a/phf/src/set.rs +++ b/phf/src/set.rs @@ -84,7 +84,7 @@ impl Set { impl Set where T: Eq + PhfHash { /// Returns true if `other` shares no elements with `self`. - pub fn is_disjoisize(&self, other: &Set) -> bool { + pub fn is_disjoint(&self, other: &Set) -> bool { !self.iter().any(|value| other.contains(value)) }