From 773df37ae847bb771f77f65b76a5b09a45b582b6 Mon Sep 17 00:00:00 2001 From: Nilstrieb Date: Fri, 17 Mar 2023 16:23:44 +0000 Subject: [PATCH] deploy: cb46b7fb714d5b1d0d5c1077d437325915f07e1f --- index.xml | 2 +- posts/index.xml | 2 +- posts/item-patterns-and-struct-else/index.html | 2 +- tags/language-design/index.xml | 2 +- tags/rust/index.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.xml b/index.xml index bdd451f..e8e5f98 100644 --- a/index.xml +++ b/index.xml @@ -92,7 +92,7 @@ So far we&rsquo;ve just used tuples. But we can go even further. Structs of </span></span><span style="display:flex;"><span> child: { name: String, unsafety: <span style="color:#66d9ef">bool</span> }, </span></span><span style="display:flex;"><span>}; </span></span></code></pre></div><p>Now we can nicely match on the <code>Household</code> struct containing the definition of the <code>Ferris</code> and <code>Corro</code> structs. This is equivalent to the following code:</p> -<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Feris</span> { +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Ferris</span> { </span></span><span style="display:flex;"><span> name: String, </span></span><span style="display:flex;"><span>} </span></span><span style="display:flex;"><span> diff --git a/posts/index.xml b/posts/index.xml index 8d37c15..8404eeb 100644 --- a/posts/index.xml +++ b/posts/index.xml @@ -92,7 +92,7 @@ So far we&rsquo;ve just used tuples. But we can go even further. Structs of </span></span><span style="display:flex;"><span> child: { name: String, unsafety: <span style="color:#66d9ef">bool</span> }, </span></span><span style="display:flex;"><span>}; </span></span></code></pre></div><p>Now we can nicely match on the <code>Household</code> struct containing the definition of the <code>Ferris</code> and <code>Corro</code> structs. This is equivalent to the following code:</p> -<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Feris</span> { +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Ferris</span> { </span></span><span style="display:flex;"><span> name: String, </span></span><span style="display:flex;"><span>} </span></span><span style="display:flex;"><span> diff --git a/posts/item-patterns-and-struct-else/index.html b/posts/item-patterns-and-struct-else/index.html index 49dc180..18c4f89 100644 --- a/posts/item-patterns-and-struct-else/index.html +++ b/posts/item-patterns-and-struct-else/index.html @@ -66,7 +66,7 @@ So far we’ve just used tuples. But we can go even further. Structs of stru parent: { name: String }, child: { name: String, unsafety: bool }, }; -

Now we can nicely match on the Household struct containing the definition of the Ferris and Corro structs. This is equivalent to the following code:

struct Feris {
+

Now we can nicely match on the Household struct containing the definition of the Ferris and Corro structs. This is equivalent to the following code:

struct Ferris {
   name: String,
 }
 
diff --git a/tags/language-design/index.xml b/tags/language-design/index.xml
index e19b78f..3d00b04 100644
--- a/tags/language-design/index.xml
+++ b/tags/language-design/index.xml
@@ -92,7 +92,7 @@ So far we&rsquo;ve just used tuples. But we can go even further. Structs of
 </span></span><span style="display:flex;"><span> child: { name: String, unsafety: <span style="color:#66d9ef">bool</span> },
 </span></span><span style="display:flex;"><span>};
 </span></span></code></pre></div><p>Now we can nicely match on the <code>Household</code> struct containing the definition of the <code>Ferris</code> and <code>Corro</code> structs. This is equivalent to the following code:</p>
-<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Feris</span> {
+<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Ferris</span> {
 </span></span><span style="display:flex;"><span> name: String,
 </span></span><span style="display:flex;"><span>}
 </span></span><span style="display:flex;"><span>
diff --git a/tags/rust/index.xml b/tags/rust/index.xml
index 598a18e..0443ef8 100644
--- a/tags/rust/index.xml
+++ b/tags/rust/index.xml
@@ -92,7 +92,7 @@ So far we&rsquo;ve just used tuples. But we can go even further. Structs of
 </span></span><span style="display:flex;"><span> child: { name: String, unsafety: <span style="color:#66d9ef">bool</span> },
 </span></span><span style="display:flex;"><span>};
 </span></span></code></pre></div><p>Now we can nicely match on the <code>Household</code> struct containing the definition of the <code>Ferris</code> and <code>Corro</code> structs. This is equivalent to the following code:</p>
-<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Feris</span> {
+<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">struct</span> <span style="color:#a6e22e">Ferris</span> {
 </span></span><span style="display:flex;"><span> name: String,
 </span></span><span style="display:flex;"><span>}
 </span></span><span style="display:flex;"><span>