From ddf09173e4ae86513d24a950fb237cde6c90353a Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Wed, 5 Jan 2022 08:43:28 -0500 Subject: [PATCH] Updated to newest function syntax --- Slang/script.slg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Slang/script.slg b/Slang/script.slg index 3543223..1332f21 100644 --- a/Slang/script.slg +++ b/Slang/script.slg @@ -1,6 +1,6 @@ -void Main(string input, int in) +func Main(input, in) { print "PI is: " + PI int x = 1 @@ -21,7 +21,7 @@ void Main(string input, int in) CPP.Graphics.Init(64, 64, 4) } -void Update(string input) +func Update(input) { int x = 0 int y = 0 @@ -36,4 +36,4 @@ void Update(string input) x += 1 } print "updating" -} \ No newline at end of file +}