aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
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}