Updated example code

This commit is contained in:
Sasha Koshka 2022-09-17 12:33:52 -04:00
parent ea92decfe7
commit 8d3f6a8233
2 changed files with 6 additions and 6 deletions

View File

@ -4,6 +4,6 @@ require "io"
func ro main
> arguments:{String ..}
< status:Int 0
< status:Int:<0>
---
io.println "hello world"

View File

@ -5,18 +5,18 @@ require "io"
---
# this is a global variable
data pv helloText:String "Hello, world!"
data pv helloText:String:<"Hello, world!">
# this is a struct definition
objt ro Greeter:Obj
rw text:String "Hi."
type ro Greeter:Obj:(
.rw text:String:<"Hi.">)
# this is a function
func ro main
> arguments:{String ..}
< status:Int 0
< status:Int:<0>
---
= greeter:Greeter:mut
let greeter:Greeter:mut
greeter.setText helloText
greeter.greet