mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix typo
This commit is contained in:
@@ -98,7 +98,7 @@ impl RangeType {
|
||||
// compute the last element that is actually contained within the range
|
||||
// this is the new start
|
||||
let remainder = ((&self.end - &self.start) % &self.step).abs();
|
||||
let start = if rem.is_zero() {
|
||||
let start = if remainder.is_zero() {
|
||||
&self.end - &self.step
|
||||
} else {
|
||||
&self.end - &remainder
|
||||
|
||||
Reference in New Issue
Block a user