Update examples
This commit is contained in:
parent
499b47987c
commit
537d93ced1
@ -1,6 +1,6 @@
|
|||||||
use "std"
|
use "std"
|
||||||
|
|
||||||
let run = pub fn {
|
pub fn run {
|
||||||
for {
|
for {
|
||||||
std.printf "first number: "
|
std.printf "first number: "
|
||||||
let a = std.read_i32
|
let a = std.read_i32
|
||||||
|
@ -7,8 +7,8 @@ use "./calc"
|
|||||||
io.read_all "epic_file" -> str.sort_lines -> io.write_all "output"
|
io.read_all "epic_file" -> str.sort_lines -> io.write_all "output"
|
||||||
|
|
||||||
std.println "Counting to 10:"
|
std.println "Counting to 10:"
|
||||||
for i in 0..=10 {
|
for let i in 0..=10 {
|
||||||
std.printf "%d" i
|
std.printf "%i" i
|
||||||
if i == 10 {
|
if i == 10 {
|
||||||
std.println "!"
|
std.println "!"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user