mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix int.__truediv__ error message
This commit is contained in:
@@ -208,7 +208,7 @@ where
|
||||
|
||||
fn inner_truediv(i1: &BigInt, i2: &BigInt, vm: &VirtualMachine) -> PyResult {
|
||||
if i2.is_zero() {
|
||||
return Err(vm.new_zero_division_error("integer division by zero".to_owned()));
|
||||
return Err(vm.new_zero_division_error("division by zero".to_owned()));
|
||||
}
|
||||
|
||||
let value = if let (Some(f1), Some(f2)) = (i2f(i1), i2f(i2)) {
|
||||
|
||||
Reference in New Issue
Block a user