File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -179,23 +179,23 @@ <h1><a class="header" href="#新しいプロジェクトを作成する" id="新
179179< p > Cargoは新たなプロジェクトを作成する際に自動で最新のエディションをコンフィギュレーションに追加します。</ p >
180180< pre > < code class ="language-console "> > cargo +nightly new foo
181181 Created binary (application) `foo` project
182- > cat .\ foo\ Cargo.toml
182+ > cat foo/ Cargo.toml
183183[package]
184184name = "foo"
185185version = "0.1.0"
186186authors = ["your name <you@example.com>"]
187- edition = "2018 "
187+ edition = "2021 "
188188
189189[dependencies]
190190</ code > </ pre >
191191<!--
192- That `edition = "2018 "` setting will configure your package to use Rust 2018 .
192+ That `edition = "2021 "` setting will configure your package to use Rust 2021 .
193193No more configuration needed!
194194
195195If you'd prefer to use an older edition, you can change the value in that
196196key, for example:
197197-->
198- < p > この < code > edition = "2018 "</ code > によってあなたのパッケージが Rust 2018 を利用するように設定されます。
198+ < p > この < code > edition = "2021 "</ code > によってあなたのパッケージが Rust 2021 を利用するように設定されます。
199199これ以外は必要ありません。</ p >
200200< p > もし、他の古いエディションを使いたい場合は、その設定の値を変更できます。例えば、</ p >
201201< pre > < code class ="language-toml "> [package]
Original file line number Diff line number Diff line change @@ -291,23 +291,23 @@ <h1><a class="header" href="#新しいプロジェクトを作成する" id="新
291291< p > Cargoは新たなプロジェクトを作成する際に自動で最新のエディションをコンフィギュレーションに追加します。</ p >
292292< pre > < code class ="language-console "> > cargo +nightly new foo
293293 Created binary (application) `foo` project
294- > cat .\ foo\ Cargo.toml
294+ > cat foo/ Cargo.toml
295295[package]
296296name = "foo"
297297version = "0.1.0"
298298authors = ["your name <you@example.com>"]
299- edition = "2018 "
299+ edition = "2021 "
300300
301301[dependencies]
302302</ code > </ pre >
303303<!--
304- That `edition = "2018 "` setting will configure your package to use Rust 2018 .
304+ That `edition = "2021 "` setting will configure your package to use Rust 2021 .
305305No more configuration needed!
306306
307307If you'd prefer to use an older edition, you can change the value in that
308308key, for example:
309309-->
310- < p > この < code > edition = "2018 "</ code > によってあなたのパッケージが Rust 2018 を利用するように設定されます。
310+ < p > この < code > edition = "2021 "</ code > によってあなたのパッケージが Rust 2021 を利用するように設定されます。
311311これ以外は必要ありません。</ p >
312312< p > もし、他の古いエディションを使いたい場合は、その設定の値を変更できます。例えば、</ p >
313313< pre > < code class ="language-toml "> [package]
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments