File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ impl IFn for NthFn {
177
177
fn invoke ( & self , args : Vec < & Value > ) -> Value {
178
178
// @TODO generalize arity exceptions, and other exceptions
179
179
if args. len ( ) != 2 {
180
- return error_message:: wrong_arg_count ( 2 , args. len ( ) )
180
+ return error_message:: wrong_varg_count ( & [ 2 , 3 ] , args. len ( ) )
181
181
}
182
182
// @TODO change iteration to work with Value references, or even change invoke to work on Rc<..>
183
183
// as we do everything else; surely we don't want to clone just to read from a collection
@@ -209,7 +209,7 @@ impl IFn for NthFn {
209
209
_ => error_message:: type_mismatch ( TypeTag :: ISeq , args. get ( 0 ) ) ,
210
210
}
211
211
} else {
212
- error_message:: type_mismatch ( TypeTag :: Integer , args. get ( 0 ) )
212
+ error_message:: type_mismatch ( TypeTag :: Integer , args. get ( 1 ) )
213
213
}
214
214
}
215
215
}
You can’t perform that action at this time.
0 commit comments