lib/standard: document FileReader::from_fd
authorJean Privat <jean@pryen.org>
Mon, 30 Mar 2015 12:48:34 +0000 (19:48 +0700)
committerJean Privat <jean@pryen.org>
Tue, 31 Mar 2015 00:37:46 +0000 (07:37 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/file.nit

index 7052c15..81341ad 100644 (file)
@@ -135,6 +135,7 @@ class FileReader
                end
        end
 
+       # Creates a new File stream from a file descriptor
        init from_fd(fd: Int) do
                self.path = ""
                prepare_buffer(1)