diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:11:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:12:43 +0000 |
commit | cf94bdc0742c13e2a0cac864c478b8626b266e1b (patch) | |
tree | 044670aa50cc5e2b4229aa0b6b3df6676730c0a6 /src/doc/book/nostarch/preface.md | |
parent | Adding debian version 1.65.0+dfsg1-2. (diff) | |
download | rustc-cf94bdc0742c13e2a0cac864c478b8626b266e1b.tar.xz rustc-cf94bdc0742c13e2a0cac864c478b8626b266e1b.zip |
Merging upstream version 1.66.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/doc/book/nostarch/preface.md')
-rw-r--r-- | src/doc/book/nostarch/preface.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/doc/book/nostarch/preface.md b/src/doc/book/nostarch/preface.md index 5ec239151..33b1a0fd8 100644 --- a/src/doc/book/nostarch/preface.md +++ b/src/doc/book/nostarch/preface.md @@ -1,22 +1,22 @@ -# Preface +## Preface This version of the text assumes you’re using Rust 1.62.0 (released 2022-06-30) -or later with edition="2021" in *Cargo.toml* of all projects to use Rust 2021 -Edition idioms. See “Installation” on page 1 to install or update Rust, and see -Appendix E for information on editions. +or later with `edition="2021"` in *Cargo.toml* of all projects to use Rust 2021 +Edition idioms. See “Installation” on page 1 for instructions on installing or +updating Rust, and see Appendix E for information on editions. -The 2021 Edition of the Rust language includes a small number of improvements -that make Rust more ergonomic and correct some inconsistencies. This rendition -of the book has a number of improvements to address feedback: +The 2021 Edition of the Rust language includes a number of improvements that +make Rust more ergonomic and correct some inconsistencies. On top of a general +update to reflect these improvements, this rendition of the book has a number +of improvements to address specific feedback: -• Chapter 7 contains a new quick reference section on organizing your code into +* Chapter 7 contains a new quick reference section on organizing your code into multiple files with modules. -• Chapter 13 has new and improved closure examples that more clearly illustrate +* Chapter 13 has new and improved closure examples that more clearly illustrate captures, the `move` keyword, and the `Fn` traits. -• We fixed a number of small errors and imprecise wording throughout the book. +* We fixed a number of small errors and imprecise wording throughout the book. Thank you to the readers who reported them! - -Note that any code in earlier renditions of this book that compiled will +Note that any code from earlier renditions of this book that compiled will continue to compile with the relevant edition in the project’s *Cargo.toml*, even as you update the Rust compiler version you’re using. That’s Rust’s backward compatibility guarantees at work! |