diff --git a/src/io.cr b/src/io.cr index 9e56ec5afbb7..611ad5532254 100644 --- a/src/io.cr +++ b/src/io.cr @@ -7,13 +7,13 @@ require "c/errno" # The `IO` class is the basis for all input and output in Crystal. # # This class is inherited by types like `File`, `Socket` and `IO::Memory` and -# provide many useful methods for reading to and writing from an IO, like `print`, `puts`, +# provide many useful methods for reading from and writing to an IO, like `print`, `puts`, # `gets` and `printf`. # # The only requirement for a type including the `IO` module is to define # these two methods: # -# * `read(slice : Bytes)`: read at most *slice.size* bytes into *slice* and return the number of bytes read +# * `read(slice : Bytes)`: read at most *slice.size* bytes from IO into *slice* and return the number of bytes read # * `write(slice : Bytes)`: write the whole *slice* into the IO # # For example, this is a simple `IO` on top of a `Bytes`: