summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-16 07:24:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-16 07:24:21 +0000
commit074203d270bba2046f6d272f9d01385257be9fee (patch)
treee4ece206c3afe82313f3faa4a82468cdfb32d2f5 /sample
parent46620a87720943120cabe6ffe2e94a2c3506c4c2 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/svr.rb2
-rw-r--r--sample/tsvr.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/sample/svr.rb b/sample/svr.rb
index c866407eb0..af566056b7 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
diff --git a/sample/tsvr.rb b/sample/tsvr.rb
index ebfad4beeb..8b019bdb71 100644
--- a/sample/tsvr.rb
+++ b/sample/tsvr.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(":"))
while TRUE
Thread.start(gs.accept) do |s|