Update Examples
parent
0a5ce27027
commit
1655558c29
16
Examples.md
16
Examples.md
@ -1 +1,17 @@
|
|||||||
This page selects some example programs from "Rust by Example" and shows their intended Husht equivalents. (Of course, the details of the syntax on the Husht side may vary.)
|
This page selects some example programs from "Rust by Example" and shows their intended Husht equivalents. (Of course, the details of the syntax on the Husht side may vary.)
|
||||||
|
|
||||||
|
#### Hello World
|
||||||
|
```
|
||||||
|
// Many comments from the Rust by Example versionhave been removed
|
||||||
|
fn main() {
|
||||||
|
// Print text to the console.
|
||||||
|
println!("Hello World!");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
<->
|
||||||
|
```
|
||||||
|
// Many comments from the Rust by Example versionhave been removed
|
||||||
|
fn main
|
||||||
|
// Print text to the console.
|
||||||
|
println! "Hello World!"
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user