From 356fe02a8c66309344229bbde1463d5f9d755af7 Mon Sep 17 00:00:00 2001 From: funkill2 Date: Wed, 10 Apr 2024 04:00:15 +0300 Subject: [PATCH] update original --- rustbook-en/src/ch01-01-installation.md | 15 ++++----------- rustbook-en/src/ch16-03-shared-state.md | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/rustbook-en/src/ch01-01-installation.md b/rustbook-en/src/ch01-01-installation.md index 87f37fab2..64968f6bc 100644 --- a/rustbook-en/src/ch01-01-installation.md +++ b/rustbook-en/src/ch01-01-installation.md @@ -59,16 +59,9 @@ the `build-essential` package. On Windows, go to [https://www.rust-lang.org/tools/install][install] and follow the instructions for installing Rust. At some point in the installation, you’ll -receive a message explaining that you’ll also need the MSVC build tools for -Visual Studio 2013 or later. - -To acquire the build tools, you’ll need to install [Visual Studio -2022][visualstudio]. When asked which workloads to install, include: - -* “Desktop Development with C++” -* The Windows 10 or 11 SDK -* The English language pack component, along with any other language pack of - your choosing +be prompted to install Visual Studio. This provides a linker and the native +libraries needed to compile programs. If you need more help with this step, see +[https://rust-lang.github.io/rustup/installation/windows-msvc.html][msvc] The rest of this book uses commands that work in both *cmd.exe* and PowerShell. If there are specific differences, we’ll explain which to use. @@ -143,5 +136,5 @@ sure what it does or how to use it, use the application programming interface [otherinstall]: https://forge.rust-lang.org/infra/other-installation-methods.html [install]: https://www.rust-lang.org/tools/install -[visualstudio]: https://visualstudio.microsoft.com/downloads/ +[msvc]: https://rust-lang.github.io/rustup/installation/windows-msvc.html [community]: https://www.rust-lang.org/community diff --git a/rustbook-en/src/ch16-03-shared-state.md b/rustbook-en/src/ch16-03-shared-state.md index 918d162cf..a5f806c5b 100644 --- a/rustbook-en/src/ch16-03-shared-state.md +++ b/rustbook-en/src/ch16-03-shared-state.md @@ -128,7 +128,7 @@ We hinted that this example wouldn’t compile. Now let’s find out why! The error message states that the `counter` value was moved in the previous iteration of the loop. Rust is telling us that we can’t move the ownership -of lock `counter` into multiple threads. Let’s fix the compiler error with a +of `counter` into multiple threads. Let’s fix the compiler error with a multiple-ownership method we discussed in Chapter 15. #### Multiple Ownership with Multiple Threads