aboutsummaryrefslogtreecommitdiff
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
parent40cefb2ff08d0e872408c8218b5d4d22d2c5ba11 (diff)
fix erronous macro examples
-rw-r--r--docs/index.html4
-rw-r--r--docs/index.xml8
-rw-r--r--docs/posts/auto-currying_rust_functions/index.html8
-rwxr-xr-xgenerate.sh4
-rw-r--r--posts/auto-currying_rust_functions.md6
5 files changed, 17 insertions, 13 deletions
diff --git a/docs/index.html b/docs/index.html
index e426877..24d080e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -8,13 +8,13 @@
8<meta name="HandheldFriendly" content="true"> 8<meta name="HandheldFriendly" content="true">
9<meta property="og:title" content="nerdypepper"> 9<meta property="og:title" content="nerdypepper">
10<meta property="og:type" content="website"> 10<meta property="og:type" content="website">
11<meta property="og:description" content="a static site {for, by, about} me "> 11<meta property="og:description" content="nerdypepper's micro musings">
12<meta property="og:url" content="https://peppe.rs"> 12<meta property="og:url" content="https://peppe.rs">
13<link rel="icon" type="image/x-icon" href="/favicon.png"> 13<link rel="icon" type="image/x-icon" href="/favicon.png">
14<title>peppe.rs</title> 14<title>peppe.rs</title>
15<body> 15<body>
16 <h1 class="heading">n</h1> 16 <h1 class="heading">n</h1>
17 <h4 class="subheading">nerdypepper's μblog</h4> 17 <h4 class="subheading">nerdypepper's μsings</h4>
18 <div class="posts"> 18 <div class="posts">
19 <div class="post"> 19 <div class="post">
20 20
diff --git a/docs/index.xml b/docs/index.xml
index dce3d00..07120bc 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -60,9 +60,11 @@ h(x)(y)(z) = g(y)(z) = k(z) = v</code></pre>
60<h3 id="procedural-macros">Procedural Macros</h3> 60<h3 id="procedural-macros">Procedural Macros</h3>
61<p>These are functions that take code as input and spit out modified code as output. Powerful stuff. Rust has three kinds of proc-macros:</p> 61<p>These are functions that take code as input and spit out modified code as output. Powerful stuff. Rust has three kinds of proc-macros:</p>
62<ul> 62<ul>
63<li>Function like macros: <code>println!</code>, <code>vec!</code>.</li> 63<li>Function like macros<br />
64<li>Derive macros: <code>#[derive(...)]</code>, used to automatically implement traits for structs/enums.</li> 64</li>
65<li>and Attribute macros: <code>#[test]</code>, usually slapped onto functions.</li> 65<li>Derive macros: <code>#[derive(...)]</code>, used to automatically implement traits for structs/enums<br />
66</li>
67<li>and Attribute macros: <code>#[test]</code>, usually slapped onto functions</li>
66</ul> 68</ul>
67<p>We will be using Attribute macros to convert a Rust function into a curried Rust function, which we should be able to call via: <code>function(arg1)(arg2)</code>.</p> 69<p>We will be using Attribute macros to convert a Rust function into a curried Rust function, which we should be able to call via: <code>function(arg1)(arg2)</code>.</p>
68<h3 id="definitions">Definitions</h3> 70<h3 id="definitions">Definitions</h3>
diff --git a/docs/posts/auto-currying_rust_functions/index.html b/docs/posts/auto-currying_rust_functions/index.html
index 2ed5419..db70890 100644
--- a/docs/posts/auto-currying_rust_functions/index.html
+++ b/docs/posts/auto-currying_rust_functions/index.html
@@ -85,9 +85,11 @@ h(x)(y)(z) = g(y)(z) = k(z) = v</code></pre>
85<h3 id="procedural-macros">Procedural Macros</h3> 85<h3 id="procedural-macros">Procedural Macros</h3>
86<p>These are functions that take code as input and spit out modified code as output. Powerful stuff. Rust has three kinds of proc-macros:</p> 86<p>These are functions that take code as input and spit out modified code as output. Powerful stuff. Rust has three kinds of proc-macros:</p>
87<ul> 87<ul>
88<li>Function like macros: <code>println!</code>, <code>vec!</code>.</li> 88<li>Function like macros<br />
89<li>Derive macros: <code>#[derive(...)]</code>, used to automatically implement traits for structs/enums.</li> 89</li>
90<li>and Attribute macros: <code>#[test]</code>, usually slapped onto functions.</li> 90<li>Derive macros: <code>#[derive(...)]</code>, used to automatically implement traits for structs/enums<br />
91</li>
92<li>and Attribute macros: <code>#[test]</code>, usually slapped onto functions</li>
91</ul> 93</ul>
92<p>We will be using Attribute macros to convert a Rust function into a curried Rust function, which we should be able to call via: <code>function(arg1)(arg2)</code>.</p> 94<p>We will be using Attribute macros to convert a Rust function into a curried Rust function, which we should be able to call via: <code>function(arg1)(arg2)</code>.</p>
93<h3 id="definitions">Definitions</h3> 95<h3 id="definitions">Definitions</h3>
diff --git a/generate.sh b/generate.sh
index aac713c..487bbc1 100755
--- a/generate.sh
+++ b/generate.sh
@@ -71,13 +71,13 @@ cat > ./docs/index.html << EOF
71<meta name="HandheldFriendly" content="true"> 71<meta name="HandheldFriendly" content="true">
72<meta property="og:title" content="nerdypepper"> 72<meta property="og:title" content="nerdypepper">
73<meta property="og:type" content="website"> 73<meta property="og:type" content="website">
74<meta property="og:description" content="a static site {for, by, about} me "> 74<meta property="og:description" content="nerdypepper's micro musings">
75<meta property="og:url" content="https://peppe.rs"> 75<meta property="og:url" content="https://peppe.rs">
76<link rel="icon" type="image/x-icon" href="/favicon.png"> 76<link rel="icon" type="image/x-icon" href="/favicon.png">
77<title>peppe.rs</title> 77<title>peppe.rs</title>
78<body> 78<body>
79 <h1 class="heading">n</h1> 79 <h1 class="heading">n</h1>
80 <h4 class="subheading">nerdypepper's μblog</h4> 80 <h4 class="subheading">nerdypepper's μsings</h4>
81 <div class="posts"> 81 <div class="posts">
82 <div class="post"> 82 <div class="post">
83EOF 83EOF
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