From 265f7242a07fef69fe6a12f1bb51533895113d17 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Tue, 25 Jan 2011 15:20:32 +0100 Subject: [PATCH] removed newline from echo string --- echo_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo_test.rb b/echo_test.rb index 106635c..a3f8ea8 100644 --- a/echo_test.rb +++ b/echo_test.rb @@ -9,7 +9,7 @@ s = TCPSocket.open(hostname, port) print "What to echo? " q = gets -s.print(q) +s.print(q.chop) while true line = s.gets # Read lines from the socket