Skip to content

Commit cc90bc0

Browse files
authored
Merge pull request RustPython#3835 from fanninpm/itertools-count-constructor-error
Fix error type in itertools.count constructor
2 parents 3bc65bd + 71968b3 commit cc90bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/itertools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mod decl {
197197
let start = start.into_option().unwrap_or_else(|| vm.new_pyobj(0));
198198
let step = step.into_option().unwrap_or_else(|| vm.new_pyobj(1));
199199
if !PyNumber::check(&start, vm) || !PyNumber::check(&step, vm) {
200-
return Err(vm.new_value_error("a number is require".to_owned()));
200+
return Err(vm.new_type_error("a number is required".to_owned()));
201201
}
202202

203203
PyItertoolsCount {

0 commit comments

Comments
 (0)