Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 修正关于 Rust 版本的介绍 #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/appendix-05-editions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Rust 语言和编译器有一个为期 6 周的发布循环。这意味着用户
* 对于非用户,它表明发布了一些重大进展,这意味着 Rust 可能变得值得一试。
* 对于 Rust 自身开发者,其提供了项目整体的集合点。

在本文档编写时,Rust 有两个版本:Rust 2015 和 Rust 2018。本书基于 Rust 2018 edition 编写。
在本文档编写时,Rust 有两个版本:Rust 2015、Rust 2018 和 Rust 2021。本书基于 Rust 2018 edition 编写。
Jisu-Woniu marked this conversation as resolved.
Show resolved Hide resolved

*Cargo.toml* 中的 `edition` 字段表明代码应该使用哪个版本编译。如果该字段不存在,其默认为 `2015` 以提供后向兼容性。

Expand Down