diff --git a/lib/memcached/server.rb b/lib/memcached/server.rb index 5624446..e7df369 100644 --- a/lib/memcached/server.rb +++ b/lib/memcached/server.rb @@ -11,7 +11,7 @@ module Memcached end def to_s - s = hostname + s = hostname.dup s << ":#{port}" if 0 != port s << ":#{weight}" if weight s