From fef14c04764c6e1e23a4a7b58163f2e36d5d96dc Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Wed, 21 Aug 2024 16:57:14 +0000 Subject: [PATCH] Update Examples --- Examples.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Examples.md b/Examples.md index ccd4f54..f525cde 100644 --- a/Examples.md +++ b/Examples.md @@ -1,8 +1,8 @@ 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 +### Hello World ``` -// Many comments from the Rust by Example versionhave been removed +// Many comments from the Rust by Example version have been removed fn main() { // Print text to the console. println!("Hello World!"); @@ -10,8 +10,13 @@ fn main() { ``` <-> ``` -// Many comments from the Rust by Example versionhave been removed +// Many comments from the Rust by Example version have been removed fn main // Print text to the console. println! "Hello World!" -``` \ No newline at end of file +``` + +#### Formatted print + (Skipping for now because we likely want "f-strings" in Husht, which require some thought/design.) + +### Primitives \ No newline at end of file