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;
export fn main() void = {
const greetings = [
"Hello, world!",
"¡Hola Mundo!",
"Γειά σου Κόσμε!",
"Привіт, світ!",
"こんにちは世界!",
];
for (let i = 0z; i < len(greetings); i+= 1) {
fmt::println(greetings[i])!;
};
};`
const greetings = [
"Hello, world!",
"¡Hola Mundo!",
"Γειά σου Κόσμε!",
"Привіт, світ!",
"こんにちは世界!",
];
for (let greeting .. greetings) {
fmt::println(greeting)!;
};
};`;
if (location.hash) {
let code = base64Decode(location.hash.substr(1));