Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Dec 13, 2012
1 parent c185944 commit 1a44fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -83,6 +83,6 @@ Returns the `Writer` instance for chaining methods.


<a name="writeln"></a> <a name="writeln"></a>
__Writer#writeln(data[, offset[, length]])__ __Writer#writeln(data[, offset[, length]])__
Does the same than `write()` but stringifies the data and concatenates an EOL, OS dependent, `\r\n` on Windows, `\n` otherwise. Does the same as `write()` but stringifies the data and concatenates an EOL, OS dependent, `\r\n` on Windows, `\n` otherwise.


The offset and length specifies the slice of the given piece of data that will be written. By default offset is 0 and length is the last byte/character. The offset and length are applied to the string characters, not the bytes, for example, `write("↑a", 1)` will write `a` because offset is 1. Take into account that `` is encoded with 3 bytes in utf8. The offset and length specifies the slice of the given piece of data that will be written. By default offset is 0 and length is the last byte/character. The offset and length are applied to the string characters, not the bytes, for example, `write("↑a", 1)` will write `a` because offset is 1. Take into account that `` is encoded with 3 bytes in utf8.

0 comments on commit 1a44fbc

Please sign in to comment.