diff options
| author | Santiago Pastorino <santiago@wyeworks.com> | 2014-09-13 20:23:32 -0300 |
|---|---|---|
| committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-09-13 22:25:38 -0300 |
| commit | f8bbf6d0e111f3959f1b9b4e5d2283e209d16a94 (patch) | |
| tree | a610035fd3a7750f0f693b691a471d0b93f43db6 | |
| parent | 79a5448f41dcc6ab52663105a6b02fc5af4c503e (diff) | |
| download | rust-f8bbf6d0e111f3959f1b9b4e5d2283e209d16a94.tar.gz rust-f8bbf6d0e111f3959f1b9b4e5d2283e209d16a94.zip | |
`rustc main.rs` generates main binary file
| -rw-r--r-- | src/doc/guide.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 140536543d9..f102b77228c 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -152,7 +152,7 @@ Save the file, and then type this into your terminal window: ```{bash} $ rustc main.rs -$ ./hello_world # or hello_world.exe on Windows +$ ./main # or main.exe on Windows Hello, world! ``` @@ -232,10 +232,10 @@ main.exe main.rs ``` There are now two files: our source code, with the `.rs` extension, and the -executable (`hello_world.exe` on Windows, `hello_world` everywhere else) +executable (`main.exe` on Windows, `main` everywhere else) ```{bash} -$ ./hello_world # or hello_world.exe on Windows +$ ./main # or main.exe on Windows ``` This prints out our `Hello, world!` text to our terminal. |
