summaryrefslogtreecommitdiff
path: root/dhall_core/src
diff options
context:
space:
mode:
authorNadrieril2019-04-13 21:34:51 +0200
committerNadrieril2019-04-13 21:34:51 +0200
commit427a3416507db3fd4b534322d996bc8aafba5259 (patch)
tree6d2e12ff2535f4dbde77e7fd61e032e0adcb79c2 /dhall_core/src
parentbbc09d65ce206d78ac7b8cfc32cc5ed4dec5fbfe (diff)
Fix `let` parsing
Diffstat (limited to 'dhall_core/src')
-rw-r--r--dhall_core/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs
index 2d47ad7..e520f05 100644
--- a/dhall_core/src/parser.rs
+++ b/dhall_core/src/parser.rs
@@ -604,7 +604,7 @@ make_parser! {
spanned(span, BoolIf(rc(cond), rc(left), rc(right)))
},
[let_binding(bindings).., in_(()), expression(final_expr)] => {
- bindings.fold(
+ bindings.rev().fold(
final_expr,
|acc, x| Let(x.0, x.1, x.2, rc(acc))
)