Skip to content

Commit 88e0836

Browse files
authored
Fixed example code with narg1 and narg2 as String type
1 parent 41cd5c1 commit 88e0836

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ using JuliaWebAPI
3333
using Compat
3434

3535
# Define functions testfn1 and testfn2 that we shall expose
36-
function testfn1(arg1, arg2; narg1=1, narg2=2)
36+
function testfn1(arg1, arg2; narg1="1", narg2="2")
3737
return (parse(Int, arg1) * parse(Int, narg1)) + (parse(Int, arg2) * parse(Int, narg2))
3838
end
3939

40-
testfn2(arg1, arg2; narg1=1, narg2=2) = testfn1(arg1, arg2; narg1=narg1, narg2=narg2)
40+
testfn2(arg1, arg2; narg1="1", narg2="2") = testfn1(arg1, arg2; narg1=narg1, narg2=narg2)
4141

4242
# Expose testfn1 and testfn2 via a ZMQ listener
4343
process([(testfn1, true), (testfn2, false)], "tcp://127.0.0.1:9999"; bind=true)

0 commit comments

Comments
 (0)