Skip to content

Commit

Permalink
Change 'is reused' to 'you can reuse' for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jul 6, 2013
1 parent f7bec65 commit e90c141
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions std/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ Read line from the file handle and return it as a specified type.
This version manages its own read buffer, which means one memory allocation per call. If you are not
retaining a reference to the read data, consider the $(D File.readln(buf)) version, which may offer
better performance as it reuses its read buffer.
better performance as it can reuse its read buffer.
Params:
S = Template parameter; the type of the allocated buffer, and the type returned. Defaults to $(D string).
Expand Down Expand Up @@ -871,8 +871,8 @@ void main()
Read line from the file handle and write it to $(D buf[]), including
terminating character.
This is often faster than $(D line = File.readln()) because the buffer
is reused each call. Note that reusing the buffer means that the
This can be faster than $(D line = File.readln()) because you can reuse
the buffer for each call. Note that reusing the buffer means that the
previous contents of it has to be copied if needed.
Params:
Expand Down Expand Up @@ -1976,7 +1976,7 @@ unittest
*
* This version manages its own read buffer, which means one memory allocation per call. If you are not
* retaining a reference to the read data, consider the $(D readln(buf)) version, which may offer
* better performance as it reuses its read buffer.
* better performance as it can reuse its read buffer.
*
* Returns:
* The line that was read, including the line terminator character.
Expand Down Expand Up @@ -2007,8 +2007,8 @@ if (isSomeString!S)
/**********************************
* Read line from $(D stdin) and write it to buf[], including terminating character.
*
* This is often faster than $(D line = readln()) because the buffer
* is reused each call. Note that reusing the buffer means that the
* This can be faster than $(D line = readln()) because you can reuse
* the buffer for each call. Note that reusing the buffer means that the
* previous contents of it has to be copied if needed.
*
* Returns:
Expand Down

0 comments on commit e90c141

Please sign in to comment.