Update Examples
parent
1f3cf774da
commit
c003fc3719
@ -10,7 +10,8 @@ This page selects some example programs from "Rust by Example" and shows their i
|
|||||||
<td>
|
<td>
|
||||||
|
|
||||||
```
|
```
|
||||||
// Many comments from the Rust by Example version have been removed
|
// Many comments from the Rust by Example version
|
||||||
|
// have been removed
|
||||||
fn main() {
|
fn main() {
|
||||||
// Print text to the console.
|
// Print text to the console.
|
||||||
println!("Hello World!");
|
println!("Hello World!");
|
||||||
@ -20,7 +21,8 @@ fn main() {
|
|||||||
</td><td>
|
</td><td>
|
||||||
|
|
||||||
```
|
```
|
||||||
// Many comments from the Rust by Example version have been removed
|
// Many comments from the Rust by Example version
|
||||||
|
// have been removed
|
||||||
fn main
|
fn main
|
||||||
// Print text to the console.
|
// Print text to the console.
|
||||||
println! "Hello World!"
|
println! "Hello World!"
|
||||||
|
Loading…
Reference in New Issue
Block a user