Hands-on Rust: instruction to cd to dir that hasn't been created yet (page 6)

Under section Testing Rust with “Hello, World”, step 2 says to Navigate to the Rust workspace you created with cd. For example cd Rust., but there is no prior instruction to create a Rust workspace directory.

1 Like

Confirmed, here’s what’s in my beta 2 copy:

Testing Rust with “Hello, World”

Rust can build a program that prints “Hello, World!” with a simple command. You’ll learn about the details of the program in Creating Your First Rust Program, on page 10. For now, whet your appetite and test that Rust works on your computer:

  1. Open a command prompt or terminal.
  2. Navigate to the Rust workspace you created with cd. For example cd Rust.
  3. Type cargo new testrust ENTER .
  4. Change to the new testrust directory by typing cd testrustENTER.
  5. Run your new program by typing cargo runENTER.

Thanks to both of you! I see the issue, and have logged it into the bug tracker. It’ll be fixed for the next beta.

1 Like