Skip to content

Commit

Permalink
typos: specialization not specializaition
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Apr 8, 2024
1 parent 4ff61f2 commit 2d33f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/flow/src/expr/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ macro_rules! generate_binary_signature {
};
}

static SPECIALIZAITION: OnceLock<HashMap<(GenericFn, ConcreteDataType), BinaryFunc>> =
static SPECIALIZATION: OnceLock<HashMap<(GenericFn, ConcreteDataType), BinaryFunc>> =
OnceLock::new();

impl BinaryFunc {
Expand Down Expand Up @@ -331,7 +331,7 @@ impl BinaryFunc {
}

pub fn specialization(generic: GenericFn, input_type: ConcreteDataType) -> Result<Self, Error> {
let rule = SPECIALIZAITION.get_or_init(|| {
let rule = SPECIALIZATION.get_or_init(|| {
let mut spec = HashMap::new();
for func in BinaryFunc::iter() {
let sig = func.signature();
Expand Down
4 changes: 2 additions & 2 deletions src/flow/src/expr/relation/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ macro_rules! generate_signature {
};
}

static SPECIALIZAITION: OnceLock<HashMap<(GenericFn, ConcreteDataType), AggregateFunc>> =
static SPECIALIZATION: OnceLock<HashMap<(GenericFn, ConcreteDataType), AggregateFunc>> =
OnceLock::new();

impl AggregateFunc {
pub fn from_str_and_type(
name: &str,
arg_type: Option<ConcreteDataType>,
) -> Result<Self, Error> {
let rule = SPECIALIZAITION.get_or_init(|| {
let rule = SPECIALIZATION.get_or_init(|| {
let mut spec = HashMap::new();
for func in Self::iter() {
let sig = func.signature();
Expand Down

0 comments on commit 2d33f3f

Please sign in to comment.