File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ code in Listing 1-2.
123
123
[package ]
124
124
name = " hello_cargo"
125
125
version = " 0.1.0"
126
- authors = [ " Your Name <you@example.com> " ]
126
+ edition = " 2018 "
127
127
128
128
[dependencies ]
129
129
```
@@ -156,14 +156,12 @@ this file, we’ll add other sections.
156
156
157
157
<!--
158
158
The next three lines set the configuration information Cargo needs to compile
159
- your program: the name, the version, and who wrote it. Cargo gets your name and
160
- email information from your environment, so if that information is not correct,
161
- fix the information now and then save the file.
159
+ your program: the name, the version, and the edition of Rust to use. We’ll talk
160
+ about the `edition` key in [Appendix E][appendix-e]<!-- ignore --> .
162
161
-->
163
162
164
- その後の3行が、Cargoがプログラムをコンパイルするのに必要な設定情報をセットします: 名前、バージョン、誰が書いたかです。
165
- Cargoは名前とEメールの情報を環境から取得するので、その情報が正しくなければ、
166
- 今修正してそれから保存してください。
163
+ その後の3行が、Cargoがプログラムをコンパイルするのに必要な設定情報をセットします: 名前、バージョン、使用するRustのエディションです。
164
+ ` edition ` キーについては、[ Appendix E] [ appendix-e ] <!-- ignore --> で話題にします。
167
165
168
166
<!--
169
167
The last line, `[dependencies]`, is the start of a section for you to list any
You can’t perform that action at this time.
0 commit comments