Update Examples

Glen Whitney 2024-08-21 17:12:01 +00:00
parent 45e7b32a79
commit 1f3cf774da

@ -8,6 +8,7 @@ This page selects some example programs from "Rust by Example" and shows their i
</tr>
<tr>
<td>
```
// Many comments from the Rust by Example version have been removed
fn main() {
@ -15,14 +16,18 @@ fn main() {
println!("Hello World!");
}
```
</td><td>
```
// Many comments from the Rust by Example version have been removed
fn main
// Print text to the console.
println! "Hello World!"
```
</td></tr></table>
#### Formatted print
(Skipping for now because we likely want "f-strings" in Husht, which require some thought/design.)