rebuild pages at ce2b7ac

This commit is contained in:
Steve Klabnik
2017-02-25 22:29:54 +00:00
parent 1bc7d27928
commit fc5772ab03
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ since it is defined to work in exactly the same way as the <code>match</code> ex
we defined in Listing 9-5. The part of the <code>match</code> that requires a return type
of <code>Result</code> is <code>return Err(e)</code>, so the return type of the function must be a
<code>Result</code> to be compatible with this <code>return</code>.</p>
<p>Let’s look at what happens if use <code>?</code> in the <code>main</code> function, which you’ll
<p>Let’s look at what happens if we use <code>?</code> in the <code>main</code> function, which you’ll
recall has a return type of <code>()</code>:</p>
<pre><code class="language-rust,ignore">use std::fs::File;
+1 -1
View File
@@ -6721,7 +6721,7 @@ since it is defined to work in exactly the same way as the <code>match</code> ex
we defined in Listing 9-5. The part of the <code>match</code> that requires a return type
of <code>Result</code> is <code>return Err(e)</code>, so the return type of the function must be a
<code>Result</code> to be compatible with this <code>return</code>.</p>
<p>Let’s look at what happens if use <code>?</code> in the <code>main</code> function, which you’ll
<p>Let’s look at what happens if we use <code>?</code> in the <code>main</code> function, which you’ll
recall has a return type of <code>()</code>:</p>
<pre><code class="language-rust,ignore">use std::fs::File;