1
Fork 0

use latest-hare example

This commit is contained in:
Jan-Erik Rediger 2024-05-25 18:28:00 +02:00
parent 56462f0d1b
commit 70c5618eca

View file

@ -27,17 +27,17 @@ let jar = CodeJar(document.querySelector('.editor'), highlight)
const defaultCode = `use fmt; const defaultCode = `use fmt;
export fn main() void = { export fn main() void = {
const greetings = [ const greetings = [
"Hello, world!", "Hello, world!",
"¡Hola Mundo!", "¡Hola Mundo!",
"Γειά σου Κόσμε!", "Γειά σου Κόσμε!",
"Привіт, світ!", "Привіт, світ!",
"こんにちは世界!", "こんにちは世界!",
]; ];
for (let i = 0z; i < len(greetings); i+= 1) { for (let greeting .. greetings) {
fmt::println(greetings[i])!; fmt::println(greeting)!;
}; };
};` };`;
if (location.hash) { if (location.hash) {
let code = base64Decode(location.hash.substr(1)); let code = base64Decode(location.hash.substr(1));