Skip to content

Commit 0a23ae8

Browse files
committed
renamed NotIn to Nin
1 parent 64f91a4 commit 0a23ae8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

primitives/src/targeting/eval.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub enum Function {
119119
/// Is first value included in an array (second value)
120120
In(Box<Rule>, Box<Rule>),
121121
/// Is first value NOT included in an array (second value)
122-
NotIn(Box<Rule>, Box<Rule>),
122+
Nin(Box<Rule>, Box<Rule>),
123123
/// Gets the element at a certain position (second value) of an array (first value)
124124
At(Box<Rule>, Box<Rule>),
125125
/// Note: this is inclusive of the start and end value
@@ -196,8 +196,8 @@ impl Function {
196196
Self::In(Box::new(lhs.into()), Box::new(rhs.into()))
197197
}
198198

199-
pub fn new_not_in(lhs: impl Into<Rule>, rhs: impl Into<Rule>) -> Self {
200-
Self::NotIn(Box::new(lhs.into()), Box::new(rhs.into()))
199+
pub fn new_nin(lhs: impl Into<Rule>, rhs: impl Into<Rule>) -> Self {
200+
Self::Nin(Box::new(lhs.into()), Box::new(rhs.into()))
201201
}
202202

203203
pub fn new_between(
@@ -710,7 +710,7 @@ fn eval(input: &Input, output: &mut Output, rule: &Rule) -> Result<Option<Value>
710710

711711
Some(Value::Bool(b.contains(&a)))
712712
}
713-
Function::NotIn(first_rule, second_rule) => {
713+
Function::Nin(first_rule, second_rule) => {
714714
let is_in = eval(
715715
input,
716716
output,

0 commit comments

Comments
 (0)