diff options
author | Akshay <[email protected]> | 2020-05-10 15:34:46 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-05-10 15:34:46 +0100 |
commit | bc27a5c7b1bd4138076c3c1e7c19dc69cc097443 (patch) | |
tree | 78b0cd62b891c43ce1dd62c28fe82d3fc475e550 /posts | |
parent | 40cefb2ff08d0e872408c8218b5d4d22d2c5ba11 (diff) |
fix erronous macro examples
Diffstat (limited to 'posts')
-rw-r--r-- | posts/auto-currying_rust_functions.md | 6 |
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 | |||
71 | modified code as output. Powerful stuff. Rust has three | 71 | modified code as output. Powerful stuff. Rust has three |
72 | kinds of proc-macros: | 72 | kinds 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 | ||
80 | We will be using Attribute macros to convert a Rust function | 80 | We will be using Attribute macros to convert a Rust function |
81 | into a curried Rust function, which we should be able to | 81 | into a curried Rust function, which we should be able to |