aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-05-09 07:14:18 +0100
committerAkshay <[email protected]>2020-05-09 07:14:18 +0100
commit40cefb2ff08d0e872408c8218b5d4d22d2c5ba11 (patch)
treed812b655e814032f3a3d66dc2b03d1d291f588d8 /posts
parent89fe9e99ef25310412d8d92396a580069f18a67e (diff)
add missing syntax highlighting
Diffstat (limited to 'posts')
-rw-r--r--posts/auto-currying_rust_functions.md2
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.
150Armed with knowledge, we refine our expected output, this 150Armed with knowledge, we refine our expected output, this
151time, employing closures: 151time, employing closures:
152 152
153``` 153```rust
154fn add(x: u32) -> impl Fn(u32) -> impl Fn(u32) -> u32 { 154fn 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}