This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
Permalink
Show file tree
Hide file tree
1 comment
on commit
Please
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
242 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -45,6 +45,8 @@ yet very different, can teach us a lot. | ||
| Here's "Hello World" in Rust: | ||
|
|
||
| ~~~ {.rust} | ||
| use std::io::println; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
steveklabnik
Author
Owner
|
||
| fn main() { | ||
| println("Hello, world!"); | ||
| } | ||
| @@ -53,12 +55,14 @@ Here's "Hello World" in Rust: | ||
| Here's a parallel "Hello World" in Rust: | ||
|
|
||
| ~~~ {.rust} | ||
| use std::io::println; | ||
| fn main() { | ||
| for num in range(0, 10) { | ||
| do spawn { | ||
| spawn(proc() { | ||
| let greeting_message = "Hello?"; | ||
| println(greeting_message); | ||
| } | ||
| }); | ||
| } | ||
| } | ||
| ~~~ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -11,6 +11,8 @@ Rust programs end in `.rs`: | ||
| Put this in it: | ||
|
|
||
| ~~~ {.rust} | ||
| use std::io::println; | ||
| fn main() { | ||
| println("Hello, world."); | ||
| } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1 comment
on commit 9e55c57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think mentioning the existence of the
println!macro would help the readers in some way ?Just to let them know what's the difference.