diff options
author | Nadrieril | 2019-12-17 13:57:28 +0000 |
---|---|---|
committer | Nadrieril | 2019-12-17 13:57:28 +0000 |
commit | 1e4f15d1891b497ecf6632432bc9252dc6a4507d (patch) | |
tree | d3f00cf31d4386b82c6fb09eda3f690415dd8902 /dhall | |
parent | 46911b6ea91185fd5c6ffaf070e76709e40fe288 (diff) |
Typo
Diffstat (limited to '')
-rw-r--r-- | dhall/src/syntax/core/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<E> Expr<E> { } /// Add an isize to an usize -/// Panics on over/underflow +/// Returns `None` on over/underflow fn add_ui(u: usize, i: isize) -> Option<usize> { Some(if i < 0 { u.checked_sub(i.checked_neg()? as usize)? |