From cc675f264ab7da4f45358dae7a06fcb3ffdc3d7d Mon Sep 17 00:00:00 2001 From: Bruce Adams Date: Wed, 31 Aug 2016 19:54:50 -0400 Subject: [PATCH] Enhance Windows examples Most importantly, `#` does not introduce a comment in Windows CMD. Also, switch the Windows code blocks to `cmd` instead of `bash` and change the prompt to a more Windows typical `>`. --- src/ch01-02-hello-world.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ch01-02-hello-world.md b/src/ch01-02-hello-world.md index b722962e5..d06c2448c 100644 --- a/src/ch01-02-hello-world.md +++ b/src/ch01-02-hello-world.md @@ -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: