rebuild pages at d95ab62

This commit is contained in:
Steve Klabnik
2016-12-11 17:19:54 +00:00
parent 4709f29aa0
commit afe0d4b72c
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -150,9 +150,9 @@ be similar to using an argument to a function in the body without declaring it
in the signature. We need to tell Rust that we've introduced a generic
parameter. The syntax to do that is the angle brackets, like this:</p>
<pre><code class="language-text">enum OptionalNumber&lt;T&gt; { enum OptionalFloatingPointNumber&lt;T&gt; {
Some(T), Some(T),
None, None,
} }
Some(T), Some(T),
None, None,
} }
</code></pre>
<p>The <code>&lt;&gt;</code>s after the enum name indicate a list of type parameters, just like
<code>()</code> after a function name indicates a list of value parameters. Now the only
+3 -3
View File
@@ -7072,9 +7072,9 @@ be similar to using an argument to a function in the body without declaring it
in the signature. We need to tell Rust that we've introduced a generic
parameter. The syntax to do that is the angle brackets, like this:</p>
<pre><code class="language-text">enum OptionalNumber&lt;T&gt; { enum OptionalFloatingPointNumber&lt;T&gt; {
Some(T), Some(T),
None, None,
} }
Some(T), Some(T),
None, None,
} }
</code></pre>
<p>The <code>&lt;&gt;</code>s after the enum name indicate a list of type parameters, just like
<code>()</code> after a function name indicates a list of value parameters. Now the only