From 1655558c29b89eb0b43e88cd150913bc086f76b4 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Wed, 21 Aug 2024 16:02:48 +0000 Subject: [PATCH] Update Examples --- Examples.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Examples.md b/Examples.md index 8dce925..ccd4f54 100644 --- a/Examples.md +++ b/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.) + +#### 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!" +``` \ No newline at end of file