1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-16 10:51:42 +02:00

Update section about command not found

This commit is contained in:
mo8it 2024-07-13 12:02:39 +02:00
parent 3e09e509d6
commit 12d1971b0d

View File

@ -54,11 +54,12 @@ rustlings init
```
<details>
<summary><strong>If the command `rustlings` can't be found…</strong> (<em>click to expand</em>)</summary>
<summary><strong>If the command <code>rustlings</code> can't be found…</strong> (<em>click to expand</em>)</summary>
You are probably using Linux and installed Rust using your package manager.
Cargo installs binaries to the directory `~/.cargo/bin`.
You are probably using Linux and installed Rust using your package manager.
Sadly, these package managers often don't add `~/.cargo/bin` to your `PATH` environment variable.
Sadly, package managers often don't add `~/.cargo/bin` to your `PATH` environment variable.
The solution is to either add it manually or to uninstall Rust from the package manager and isntall it using the official way with `rustup`:
https://www.rust-lang.org/tools/install