From 71d8afae6d136c2f0dc4897994e43793df2be948 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 16 Jul 2020 11:56:36 +0200 Subject: [PATCH] add missing semicolon --- ralf/_posts/2020-07-15-unused-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ralf/_posts/2020-07-15-unused-data.md b/ralf/_posts/2020-07-15-unused-data.md index 5f4a771..b9b51b1 100644 --- a/ralf/_posts/2020-07-15-unused-data.md +++ b/ralf/_posts/2020-07-15-unused-data.md @@ -55,7 +55,7 @@ That transformation can be used to turn our `example` function into the followin {% highlight rust %} fn example(b: bool, num: u32) -> i32 { let mut acc = 0; - let incr = if b { 42 } else { 23 } + let incr = if b { 42 } else { 23 }; for _i in 0..num { acc += incr; } -- 2.30.2