@@ -11,7 +11,7 @@ an Internet connection to run the commands in this section, as we’ll be
11
11
downloading Rust from the Internet.
12
12
13
13
We’ll be showing off a number of commands using a terminal, and those lines all
14
- start with ` $ ` . We don't need to type in the ` $ ` s, they are there to indicate
14
+ start with ` $ ` . You don't need to type in the ` $ ` s, they are there to indicate
15
15
the start of each command. We’ll see many tutorials and examples around the web
16
16
that follow this convention: ` $ ` for commands run as our regular user, and ` # `
17
17
for commands we should be running as an administrator.
@@ -159,9 +159,11 @@ You should see the version number, commit hash, and commit date.
159
159
If you do, Rust has been installed successfully! Congrats!
160
160
161
161
If you don't and you're on Windows, check that Rust is in your %PATH% system
162
- variable. If it isn't, run the installer again, select "Change" on the "Change,
163
- repair, or remove installation" page and ensure "Add to PATH" is installed on
164
- the local hard drive.
162
+ variable: ` $ echo %PATH% ` . If it isn't, run the installer again, select "Change"
163
+ on the "Change, repair, or remove installation" page and ensure "Add to PATH" is
164
+ installed on the local hard drive. If you need to configure your path manually,
165
+ you can find the Rust executables in a directory like
166
+ ` "C:\Program Files\Rust stable GNU 1.x\bin" ` .
165
167
166
168
Rust does not do its own linking, and so you’ll need to have a linker
167
169
installed. Doing so will depend on your specific system, consult its
@@ -339,15 +341,16 @@ On Windows, you'd enter:
339
341
340
342
``` bash
341
343
$ dir
342
- main.exe main.rs
344
+ main.exe
345
+ main.rs
343
346
```
344
347
345
348
This shows we have two files: the source code, with an ` .rs ` extension, and the
346
349
executable (` main.exe ` on Windows, ` main ` everywhere else). All that's left to
347
350
do from here is run the ` main ` or ` main.exe ` file, like this:
348
351
349
352
``` bash
350
- $ ./main # or main.exe on Windows
353
+ $ ./main # or .\ main.exe on Windows
351
354
```
352
355
353
356
If * main.rs* were your "Hello, world!" program, this would print `Hello,
0 commit comments