lib/standard: StringWriter use `plain_to_s` for fast concat
authorJean Privat <jean@pryen.org>
Sun, 31 May 2015 02:50:06 +0000 (22:50 -0400)
committerJean Privat <jean@pryen.org>
Sat, 13 Jun 2015 00:16:45 +0000 (20:16 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/stream.nit

index ad31a7d..ecda97e 100644 (file)
@@ -600,7 +600,7 @@ class StringWriter
        super Writer
 
        private var content = new Array[String]
-       redef fun to_s do return content.to_s
+       redef fun to_s do return content.plain_to_s
        redef fun is_writable do return not closed
 
        redef fun write_bytes(b) do