lib/file: move implementation code to light FFI
[nit.git] / lib / standard / stream.nit
index c899982..ecda97e 100644 (file)
@@ -11,7 +11,7 @@
 # Input and output streams of characters
 module stream
 
-intrude import ropes
+intrude import text::ropes
 import error
 intrude import bytes
 
@@ -379,7 +379,7 @@ interface Writable
 
        # Like `write_to` but return a new String (may be quite large)
        #
-       # This funtionnality is anectodical, since the point
+       # This funtionality is anectodical, since the point
        # of streamable object to to be efficienlty written to a
        # stream without having to allocate and concatenate strings
        fun write_to_string: String
@@ -574,7 +574,7 @@ abstract class BufferedReader
        # Fill the buffer
        protected fun fill_buffer is abstract
 
-       # Is the last fill_buffer reach the end
+       # Has the last fill_buffer reached the end
        protected fun end_reached: Bool is abstract
 
        # Allocate a `_buffer` for a given `capacity`.
@@ -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