From: Ralf Jung Date: Thu, 16 Jul 2020 09:56:36 +0000 (+0200) Subject: add missing semicolon X-Git-Url: https://git.ralfj.de/web.git/commitdiff_plain/9af0ad5ee4b47dbc1451d618518e2fdf31e4608a?ds=sidebyside;hp=52855956cef4c1113f3a2e5d6ab00509b8c6aaef add missing semicolon --- diff --git a/personal/_posts/2020-07-15-unused-data.md b/personal/_posts/2020-07-15-unused-data.md index 5f4a771..b9b51b1 100644 --- a/personal/_posts/2020-07-15-unused-data.md +++ b/personal/_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; }