summaryrefslogtreecommitdiff
path: root/sample/clnt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/clnt.rb')
-rw-r--r--sample/clnt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/clnt.rb b/sample/clnt.rb
index a687d12211d..d2c71ec563c 100644
--- a/sample/clnt.rb
+++ b/sample/clnt.rb
@@ -2,7 +2,7 @@
# usage: ruby clnt.rb [host] port
host=(if $ARGV.length == 2; $ARGV.shift; else "localhost"; end)
print("Trying ", host, " ...")
-$stdout.flush
+STDOUT.flush
s = TCPsocket.open(host, $ARGV.shift)
print(" done\n")
print("addr: ", s.addr.join(":"), "\n")