From cedafb050efb121baa6c213f40c26f86fe43c939 Mon Sep 17 00:00:00 2001 From: nojaf Date: Sat, 21 Mar 2020 18:41:41 +0100 Subject: [PATCH] Use the name from the script in the library. --- test.fsx | 2 +- test/Library.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test.fsx b/test.fsx index 0457b08..6981572 100644 --- a/test.fsx +++ b/test.fsx @@ -1,4 +1,4 @@ #r "fsproj: ./test/test.fsproj" -let t = test.Say.hello "Chris" +let t = test.Say.hello "Krzysztof" printfn "RESULT: %s" t \ No newline at end of file diff --git a/test/Library.fs b/test/Library.fs index 806eb77..8d97662 100644 --- a/test/Library.fs +++ b/test/Library.fs @@ -5,5 +5,5 @@ open Newtonsoft.Json module Say = let hello name = - let o = {| X = 2; Y = "Hello" |} + let o = {| X = 2; Y = sprintf "Hello %s" name |} sprintf "%s" (JsonConvert.SerializeObject o)