From 86c29763247af0b36e58c7a09226b8a897bcc3a4 Mon Sep 17 00:00:00 2001 From: Igor Shaposhnik Date: Sat, 10 Jun 2017 12:19:48 +0300 Subject: [PATCH 1/2] Add creating a project directory via powershell --- second-edition/src/ch01-02-hello-world.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/second-edition/src/ch01-02-hello-world.md b/second-edition/src/ch01-02-hello-world.md index 035aedbfd..cb286f177 100644 --- a/second-edition/src/ch01-02-hello-world.md +++ b/second-edition/src/ch01-02-hello-world.md @@ -26,7 +26,7 @@ $ mkdir hello_world $ cd hello_world ``` -Windows: +Windows CMD: ```cmd > mkdir %USERPROFILE%\projects @@ -35,6 +35,15 @@ Windows: > cd hello_world ``` +Windows PowerShell: + +```cmd +> mkdir $env:USERPROFILE\projects +> cd $env:USERPROFILE\projects +> mkdir hello_world +> cd hello_world +``` + ### Writing and Running a Rust Program Next, make a new source file and call it *main.rs*. Rust files always end with From 3bb035f1c790e922faf712896100c5d88ae547ba Mon Sep 17 00:00:00 2001 From: Igor Shaposhnik Date: Sat, 10 Jun 2017 12:21:54 +0300 Subject: [PATCH 2/2] change syntax --- second-edition/src/ch01-02-hello-world.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second-edition/src/ch01-02-hello-world.md b/second-edition/src/ch01-02-hello-world.md index cb286f177..e66621524 100644 --- a/second-edition/src/ch01-02-hello-world.md +++ b/second-edition/src/ch01-02-hello-world.md @@ -37,7 +37,7 @@ Windows CMD: Windows PowerShell: -```cmd +```powershell > mkdir $env:USERPROFILE\projects > cd $env:USERPROFILE\projects > mkdir hello_world