From 074cf22ad462eafe963e4a749b2b74cab51211a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 9 Oct 2024 13:26:28 -0400 Subject: Change function syntax from `func(args)->ret` to `func(args -> ret)` --- docs/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/README.md') diff --git a/docs/README.md b/docs/README.md index c58c5c85..e4449365 100644 --- a/docs/README.md +++ b/docs/README.md @@ -44,7 +44,7 @@ Gets a line of user input text with a prompt. **Usage:** ```markdown -ask(prompt:Text, bold:Bool = yes, force_tty:Bool = yes) -> Void +ask(prompt:Text, bold:Bool = yes, force_tty:Bool = yes -> Void) ``` **Parameters:** @@ -79,7 +79,7 @@ Exits the program with a given status and optionally prints a message. **Usage:** ```markdown -ask(message:Text? = !Text, status:Int32 = 1[32]) -> Void +ask(message:Text? = !Text, status:Int32 = 1[32] -> Void) ``` **Parameters:** @@ -106,7 +106,7 @@ Prints a message to the console. **Usage:** ```markdown -say(text:Text, newline:Bool = yes) -> Void +say(text:Text, newline:Bool = yes -> Void) ``` **Parameters:** @@ -132,7 +132,7 @@ Pause execution for a given number of seconds. **Usage:** ```markdown -sleep(seconds: Num) -> Void +sleep(seconds: Num -> Void) ``` **Parameters:** @@ -156,7 +156,7 @@ Prints a message to the console, aborts the program, and prints a stack trace. **Usage:** ```markdown -fail(message:Text) -> Abort +fail(message:Text -> Abort) ``` **Parameters:** @@ -180,7 +180,7 @@ Gets the current time. This is an alias for `DateTime.now()`. **Usage:** ```markdown -now() -> DateTime +now(->DateTime) ``` **Parameters:** -- cgit v1.2.3