rustc main.rs
generates main binary file
This commit is contained in:
parent
79a5448f41
commit
f8bbf6d0e1
1 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ Save the file, and then type this into your terminal window:
|
||||||
|
|
||||||
```{bash}
|
```{bash}
|
||||||
$ rustc main.rs
|
$ rustc main.rs
|
||||||
$ ./hello_world # or hello_world.exe on Windows
|
$ ./main # or main.exe on Windows
|
||||||
Hello, world!
|
Hello, world!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -232,10 +232,10 @@ main.exe main.rs
|
||||||
```
|
```
|
||||||
|
|
||||||
There are now two files: our source code, with the `.rs` extension, and the
|
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}
|
```{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.
|
This prints out our `Hello, world!` text to our terminal.
|
||||||
|
|
Loading…
Reference in a new issue