mirror of https://github.com/rust-lang/book
Updated snapshots extracted from frontmatter
This commit is contained in:
parent
b1b6acba6a
commit
214851e930
|
@ -12,8 +12,6 @@ Karen Rustad Tölva for the cover art. Thank you to our team at No Starch,
|
|||
including Bill Pollock, Liz Chadwick, and Janelle Ludowise, for improving this
|
||||
book and bringing it to print.
|
||||
|
||||
<!--Insert Steve's acknowledgements here -->
|
||||
|
||||
Carol is grateful for the opportunity to work on this book. She thanks her
|
||||
family for their constant love and support, especially her husband Jake
|
||||
Goulding and her daughter Vivian.
|
||||
|
|
|
@ -8,7 +8,7 @@ directory, so all fixes need to be made in `/src/`.
|
|||
|
||||
# Introduction
|
||||
|
||||
Welcome to *The Rust Programming Language*, an introductory book about Rust.
|
||||
Welcome to *The Rust Programming Language,* an introductory book about Rust.
|
||||
The Rust programming language helps you write faster, more reliable software.
|
||||
High-level ergonomics and low-level control are often at odds in programming
|
||||
language design; Rust challenges that conflict. Through balancing powerful
|
||||
|
@ -62,12 +62,6 @@ devices, audio and video analysis and transcoding, cryptocurrencies,
|
|||
bioinformatics, search engines, Internet of Things applications, machine
|
||||
learning, and even major parts of the Firefox web browser.
|
||||
|
||||
<!-- with Rust adopted in a lot of really recognizable names, is it worth
|
||||
namedropping some companies that use Rust significantly? /LC -->
|
||||
<!-- No, I don't want to show favoritism, and there are lots of politics around
|
||||
the big companies using Rust that I don't want to get into. I would also worry
|
||||
about the list getting dated. /Carol -->
|
||||
|
||||
### Open Source Developers
|
||||
|
||||
Rust is for people who want to build the Rust programming language, community,
|
||||
|
@ -119,7 +113,7 @@ number guessing game. Here we cover concepts at a high level, and later
|
|||
chapters will provide additional detail. If you want to get your hands dirty
|
||||
right away, Chapter 2 is the place for that. Chapter 3 covers Rust features
|
||||
that are similar to those of other programming languages, and in Chapter 4
|
||||
you'll learn about Rust’s ownership system. If you’re a particularly meticulous
|
||||
you’ll learn about Rust’s ownership system. If you’re a particularly meticulous
|
||||
learner who prefers to learn every detail before moving on to the next, you
|
||||
might want to skip Chapter 2 and go straight to Chapter 3, returning to Chapter
|
||||
2 when you’d like to work on a project applying the details you’ve learned.
|
||||
|
@ -182,10 +176,11 @@ that doesn’t compile.
|
|||
|
||||
## Resources and How to Contribute to This Book
|
||||
|
||||
This book is open source. If you find an error, please don't hesitate to file
|
||||
This book is open source. If you find an error, please don’t hesitate to file
|
||||
an issue or send a pull request on GitHub at
|
||||
*https://github.com/rust-lang/book/*. Please see *CONTRIBUTING.md* at
|
||||
*https://github.com/rust-lang/book/blob/main/CONTRIBUTING.md* for more details.
|
||||
|
||||
The source code for the examples in this book, errata, and other information
|
||||
are available at *https://www.nostarch.com/Rust2021/*.
|
||||
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue