@@ -1266,7 +1266,7 @@ <h3 id="cargoでプロジェクトを作成する"><a class="header" href="#carg
12661266<pre><code class="language-toml">[package]
12671267name = "hello_cargo"
12681268version = "0.1.0"
1269- authors = [ "Your Name <you@example.com>& quot;]
1269+ edition = "2018& quot;
12701270
12711271[dependencies]
12721272</code></pre>
@@ -1290,13 +1290,11 @@ <h3 id="cargoでプロジェクトを作成する"><a class="header" href="#carg
12901290別のセクションも追加するでしょう。</p>
12911291<!--
12921292The next three lines set the configuration information Cargo needs to compile
1293- your program: the name, the version, and who wrote it. Cargo gets your name and
1294- email information from your environment, so if that information is not correct,
1295- fix the information now and then save the file.
1296- -->
1297- <p>その後の3行が、Cargoがプログラムをコンパイルするのに必要な設定情報をセットします: 名前、バージョン、誰が書いたかです。
1298- Cargoは名前とEメールの情報を環境から取得するので、その情報が正しくなければ、
1299- 今修正してそれから保存してください。</p>
1293+ your program: the name, the version, and the edition of Rust to use. We’ll talk
1294+ about the `edition` key in [Appendix E][appendix-e]<!-- ignore -->.
1295+ <p>--></p>
1296+ <p>その後の3行が、Cargoがプログラムをコンパイルするのに必要な設定情報をセットします: 名前、バージョン、使用するRustのエディションです。
1297+ <code>edition</code>キーについては、[Appendix E][appendix-e]<!-- ignore -->で話題にします。</p>
13001298<!--
13011299The last line, `[dependencies]`, is the start of a section for you to list any
13021300of your project’s dependencies. In Rust, packages of code are referred to as
@@ -21671,11 +21669,11 @@ <h3 id="失敗するテストを記述する"><a class="header" href="#失敗す
2167121669-->
2167221670<p><span class="caption">リスト12-15: こうだったらいいなという<code>search</code>関数の失敗するテストを作成する</span></p>
2167321671<!--
21674- This test searches for the string `“duct.”` The text we’re searching is three
21675- lines, only one of which contains `“duct.”` We assert that the value returned
21672+ This test searches for the string `“duct”`. The text we’re searching is three
21673+ lines, only one of which contains `“duct”`. We assert that the value returned
2167621674from the `search` function contains only the line we expect.
2167721675-->
21678- <p>このテストは、<code>"duct. "</code>という文字列を検索します。検索対象の文字列は3行で、うち1行だけが<code>"duct. "</code>を含みます。
21676+ <p>このテストは、<code>"duct"</code>という文字列を検索します。検索対象の文字列は3行で、うち1行だけが<code>"duct"</code>を含みます。
2167921677<code>search</code>関数から返る値が想定している行だけを含むことをアサーションします。</p>
2168021678<!--
2168121679We aren’t able to run this test and watch it fail because the test doesn’t even
0 commit comments