diff options
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 | } |