mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
Changed function name to rmod
This commit is contained in:
1 parent
1e568f1044
commit
5172a098bf
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user