Skip to content

Commit

Permalink
Use the name from the script in the library.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored and Krzysztof-Cieslak committed Mar 21, 2020
1 parent 12568d4 commit cedafb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion test/Library.fs
Expand Up @@ -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)

0 comments on commit cedafb0

Please sign in to comment.