Update examples

This commit is contained in:
Slendi 2024-02-09 14:47:46 +02:00
parent 499b47987c
commit 537d93ced1
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
use "std"
let run = pub fn {
pub fn run {
for {
std.printf "first number: "
let a = std.read_i32

View File

@ -7,8 +7,8 @@ use "./calc"
io.read_all "epic_file" -> str.sort_lines -> io.write_all "output"
std.println "Counting to 10:"
for i in 0..=10 {
std.printf "%d" i
for let i in 0..=10 {
std.printf "%i" i
if i == 10 {
std.println "!"
} else {

View File

@ -39,7 +39,7 @@ for a > 0 {
fn name {}
fn name returntype {}
fn name () {}
fn name() {}
fn name(param1 param2 param3: i32, param4: u32) u32 { }
struct StructName {