summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-12 14:54:52 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-12 14:54:52 +0200
commitccb4be4da4e8aeda115b22f2a0b586a86f5e31bd (patch)
tree34d0ac1e53b78fb4a78d9ce6121db9181479669a /src/eval
parenteaa3cbaa9c2b1564a4b0db013672245a1893314a (diff)
Make range-end exclusive
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/ops.rs b/src/eval/ops.rs
index f79b2bf6..5bc61021 100644
--- a/src/eval/ops.rs
+++ b/src/eval/ops.rs
@@ -247,7 +247,7 @@ comparison!(geq, ">=", Ordering::Greater | Ordering::Equal);
/// Compute the range from `lhs` to `rhs`.
pub fn range(lhs: Value, rhs: Value) -> StrResult<Value> {
match (lhs, rhs) {
- (Int(a), Int(b)) => Ok(Array((a ..= b).map(Int).collect())),
+ (Int(a), Int(b)) => Ok(Array((a .. b).map(Int).collect())),
(a, b) => mismatch!("cannot apply '..' to {} and {}", a, b),
}
}