aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_parser/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_parser/src/expr.rs b/askama_parser/src/expr.rs
index 9610c05..8331e01 100644
--- a/askama_parser/src/expr.rs
+++ b/askama_parser/src/expr.rs
@@ -321,7 +321,7 @@ impl<'a> Suffix<'a> {
fn index(i: &'a str) -> IResult<&'a str, Self> {
map(
- preceded(ws(char('[')), cut(terminated(Expr::parse, ws(char(']'))))),
+ preceded(ws(char('[')), cut(terminated(ws(Expr::parse), char(']')))),
Self::Index,
)(i)
}