book icon indicating copy to clipboard operation
book copied to clipboard

Typo in "Writing and Running a Rust Program"

Open hsmyers opened this issue 2 years ago • 0 comments

Where it says:

On Windows, enter the command .\main.exe instead of ./main:


> rustc main.rs
> .\main.exe
Hello, world!

the .\ is not needed. It works but it is a Unix style and as all know, Windows is not Unix. Nor is the .exe needed

This includes all references to main within Windows, later in the book.

hsmyers avatar Nov 15 '22 00:11 hsmyers