From f266bc17ca8c5de511e94ec65675c9bc3821aac2 Mon Sep 17 00:00:00 2001 From: Brady Joslin Date: Thu, 16 May 2024 11:29:19 -0500 Subject: [PATCH] correct fsharp print statements README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c9eb41..a32a97c 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Console.WriteLine(output); F#: ```fsharp let output = plugin.Call("count_vowels", "Hello, World!") +printfn "%s" output // => {"count": 3, "total": 3, "vowels": "aeiouAEIOU"} ``` @@ -96,9 +97,11 @@ Console.WriteLine(output); F#: ```fsharp let output1 = plugin.Call("count_vowels", "Hello, World!") +printfn "%s" output1 // => {"count": 3, "total": 6, "vowels": "aeiouAEIOU"} let output2 = plugin.Call("count_vowels", "Hello, World!") +printfn "%s" output2 // => {"count": 3, "total": 9, "vowels": "aeiouAEIOU"} ``` @@ -153,7 +156,7 @@ let plugin2 = new Plugin(manifest2, Array.Empty(), withWasi = true) let output2 = plugin2.Call("count_vowels", "Yellow, World!") -Console.WriteLine(output2) +printfn "%s" output2 // => {"count": 4, "total": 4, "vowels": "aeiouAEIOUY"} ```