From 7ce27cc49d248e13d43046c3dfaa4a51bd54bca0 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 31 Jul 2021 22:36:03 +0200 Subject: [PATCH] Fix the function names in calls of the 2.3 section in docs/gettingstarted.md. --- docs/gettingstarted.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/gettingstarted.md b/docs/gettingstarted.md index 731e24f..ed9b651 100644 --- a/docs/gettingstarted.md +++ b/docs/gettingstarted.md @@ -55,9 +55,9 @@ If a function does have parameters, you can call it with arguments in the right addNumbers(int a, int b, int c, int d) >> { println(a + b + c + d) } -helloWorld(1, 2, 3, 4) # Call without names -helloWorld(a = 1, b = 2, c = 3, d = 4) # Call with names -helloWorld(1, c = 3, b = 2, d = 4) +addNumbers(1, 2, 3, 4) # Call without names +addNumbers(a = 1, b = 2, c = 3, d = 4) # Call with names +addNumbers(1, c = 3, b = 2, d = 4) ``` Note that println is the only function that will get transpiled to its equivalent.