mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:04:31 -06:00
Merge pull request #243 from bruceadams/patch-1
Enhance Windows examples
This commit is contained in:
@@ -28,11 +28,11 @@ $ cd hello_world
|
||||
|
||||
Windows:
|
||||
|
||||
```bash
|
||||
$ mkdir %USERPROFILE%\projects
|
||||
$ cd %USERPROFILE%\projects
|
||||
$ mkdir hello_world
|
||||
$ cd hello_world
|
||||
```cmd
|
||||
> mkdir %USERPROFILE%\projects
|
||||
> cd %USERPROFILE%\projects
|
||||
> mkdir hello_world
|
||||
> cd hello_world
|
||||
```
|
||||
|
||||
### Writing and Running a Rust Program
|
||||
@@ -137,8 +137,8 @@ main main.rs
|
||||
|
||||
On Windows, you'd enter:
|
||||
|
||||
```bash
|
||||
$ dir /B # the /B option says to only show the file names
|
||||
```cmd
|
||||
> dir /B %= the /B option says to only show the file names =%
|
||||
main.exe
|
||||
main.rs
|
||||
```
|
||||
@@ -211,8 +211,8 @@ $ cd ~/projects
|
||||
|
||||
Windows:
|
||||
|
||||
```bash
|
||||
$ cd %USERPROFILE%\projects
|
||||
```cmd
|
||||
> cd %USERPROFILE%\projects
|
||||
```
|
||||
|
||||
And then on any operating system run:
|
||||
|
||||
Reference in New Issue
Block a user