summaryrefslogtreecommitdiff
path: root/sample/svr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/svr.rb')
-rw-r--r--sample/svr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/svr.rb b/sample/svr.rb
index c866407..af56605 100644
--- a/sample/svr.rb
+++ b/sample/svr.rb
@@ -6,7 +6,7 @@ require "socket"
gs = TCPserver.open(0)
addr = gs.addr
addr.shift
-printf("server is on %d\n", addr.join(":"))
+printf("server is on %s\n", addr.join(":"))
socks = [gs]
while TRUE