From 8d3f6a8233308f930c0cb00af4be77e75b58d36d Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 17 Sep 2022 12:33:52 -0400 Subject: [PATCH] Updated example code --- examples/basic/main.arf | 2 +- examples/full/main.arf | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/basic/main.arf b/examples/basic/main.arf index 7084112..12847f7 100644 --- a/examples/basic/main.arf +++ b/examples/basic/main.arf @@ -4,6 +4,6 @@ require "io" func ro main > arguments:{String ..} - < status:Int 0 + < status:Int:<0> --- io.println "hello world" diff --git a/examples/full/main.arf b/examples/full/main.arf index 0817ddd..a05acbc 100644 --- a/examples/full/main.arf +++ b/examples/full/main.arf @@ -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