From bc27a5c7b1bd4138076c3c1e7c19dc69cc097443 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 10 May 2020 20:04:46 +0530 Subject: fix erronous macro examples --- posts/auto-currying_rust_functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'posts') 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 modified code as output. Powerful stuff. Rust has three kinds of proc-macros: - - Function like macros: `println!`, `vec!`. + - Function like macros - Derive macros: `#[derive(...)]`, used to automatically - implement traits for structs/enums. + implement traits for structs/enums - and Attribute macros: `#[test]`, usually slapped onto - functions. + functions We will be using Attribute macros to convert a Rust function into a curried Rust function, which we should be able to -- cgit v1.2.3