use latest-hare example
This commit is contained in:
parent
56462f0d1b
commit
70c5618eca
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue