Update examples
This commit is contained in:
parent
499b47987c
commit
537d93ced1
@ -1,6 +1,6 @@
|
||||
use "std"
|
||||
|
||||
let run = pub fn {
|
||||
pub fn run {
|
||||
for {
|
||||
std.printf "first number: "
|
||||
let a = std.read_i32
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user