Changed function name to rmod

This commit is contained in:
JimJeon committed 2019-06-29 17:38:01 +09:00
1 parent 1e568f1044
commit 5172a098bf
1 file changed
+1 -1
+1 -1
View File
@@ -385,7 +385,7 @@ impl PyInt {
}
#[pymethod(name = "__rmod__")]
fn rmod_(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
fn rmod(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult {
if objtype::isinstance(&other, &vm.ctx.int_type()) {
let other = other.payload::<PyInt>().unwrap();
inner_mod(&other, self, vm)