change to union

This commit is contained in:
Henry Zimmerman 2019-09-01 11:13:39 -04:00
parent db52aa40bf
commit 77958489ee

View File

@ -66,7 +66,7 @@ impl Classes {
}
/// Adds other classes to this class; returning itself.
pub fn extend<T: Into<Classes>>(mut self, other: T) -> Self {
pub fn union<T: Into<Classes>>(mut self, other: T) -> Self {
let mut other: Classes = other.into();
self.set.extend(other.set.drain(RangeFull));
self