aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-05-10 15:34:46 +0100
committerAkshay <[email protected]>2020-05-10 15:34:46 +0100
commitbc27a5c7b1bd4138076c3c1e7c19dc69cc097443 (patch)
tree78b0cd62b891c43ce1dd62c28fe82d3fc475e550 /posts
parent40cefb2ff08d0e872408c8218b5d4d22d2c5ba11 (diff)
fix erronous macro examples
Diffstat (limited to 'posts')
-rw-r--r--posts/auto-currying_rust_functions.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/posts/auto-currying_rust_functions.md b/posts/auto-currying_rust_functions.md
index 8f60216..b2274b3 100644
--- a/posts/auto-currying_rust_functions.md
+++ b/posts/auto-currying_rust_functions.md
@@ -71,11 +71,11 @@ These are functions that take code as input and spit out
71modified code as output. Powerful stuff. Rust has three 71modified code as output. Powerful stuff. Rust has three
72kinds of proc-macros: 72kinds of proc-macros:
73 73
74 - Function like macros: `println!`, `vec!`. 74 - Function like macros
75 - Derive macros: `#[derive(...)]`, used to automatically 75 - Derive macros: `#[derive(...)]`, used to automatically
76 implement traits for structs/enums. 76 implement traits for structs/enums
77 - and Attribute macros: `#[test]`, usually slapped onto 77 - and Attribute macros: `#[test]`, usually slapped onto
78 functions. 78 functions
79 79
80We will be using Attribute macros to convert a Rust function 80We will be using Attribute macros to convert a Rust function
81into a curried Rust function, which we should be able to 81into a curried Rust function, which we should be able to