diff options
author | Akshay <[email protected]> | 2020-05-09 07:14:18 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-05-09 07:14:18 +0100 |
commit | 40cefb2ff08d0e872408c8218b5d4d22d2c5ba11 (patch) | |
tree | d812b655e814032f3a3d66dc2b03d1d291f588d8 /posts | |
parent | 89fe9e99ef25310412d8d92396a580069f18a67e (diff) |
add missing syntax highlighting
Diffstat (limited to 'posts')
-rw-r--r-- | posts/auto-currying_rust_functions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posts/auto-currying_rust_functions.md b/posts/auto-currying_rust_functions.md index 170fd31..8f60216 100644 --- a/posts/auto-currying_rust_functions.md +++ b/posts/auto-currying_rust_functions.md | |||
@@ -150,7 +150,7 @@ function pointers is beyond the scope of this post. | |||
150 | Armed with knowledge, we refine our expected output, this | 150 | Armed with knowledge, we refine our expected output, this |
151 | time, employing closures: | 151 | time, employing closures: |
152 | 152 | ||
153 | ``` | 153 | ```rust |
154 | fn add(x: u32) -> impl Fn(u32) -> impl Fn(u32) -> u32 { | 154 | fn add(x: u32) -> impl Fn(u32) -> impl Fn(u32) -> u32 { |
155 | return move |y| move |z| x + y + z; | 155 | return move |y| move |z| x + y + z; |
156 | } | 156 | } |