From 1e4f15d1891b497ecf6632432bc9252dc6a4507d Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 17 Dec 2019 13:57:28 +0000 Subject: Typo --- dhall/src/syntax/core/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall/src/syntax') diff --git a/dhall/src/syntax/core/expr.rs b/dhall/src/syntax/core/expr.rs index 7972283..5b9f401 100644 --- a/dhall/src/syntax/core/expr.rs +++ b/dhall/src/syntax/core/expr.rs @@ -351,7 +351,7 @@ impl Expr { } /// Add an isize to an usize -/// Panics on over/underflow +/// Returns `None` on over/underflow fn add_ui(u: usize, i: isize) -> Option { Some(if i < 0 { u.checked_sub(i.checked_neg()? as usize)? -- cgit v1.2.3