From 1f3cf774da993f0ba9f9de37608d3adadf1c0c89 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Wed, 21 Aug 2024 17:12:01 +0000 Subject: [PATCH] Update Examples --- Examples.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Examples.md b/Examples.md index c15b98a..35424aa 100644 --- a/Examples.md +++ b/Examples.md @@ -8,6 +8,7 @@ This page selects some example programs from "Rust by Example" and shows their i + ``` // Many comments from the Rust by Example version have been removed fn main() { @@ -15,14 +16,18 @@ fn main() { println!("Hello World!"); } ``` + + ``` // Many comments from the Rust by Example version have been removed fn main // Print text to the console. println! "Hello World!" ``` + + #### Formatted print (Skipping for now because we likely want "f-strings" in Husht, which require some thought/design.)