Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that buf can be shortened in readln #7125

Merged
merged 3 commits into from
Aug 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions std/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -1682,13 +1682,13 @@ must copy the previous contents if you wish to retain them.

Params:
buf = Buffer used to store the resulting line data. buf is
resized as necessary.
resized to exactly contain the line.
mmtrebuchet marked this conversation as resolved.
Show resolved Hide resolved
terminator = Line terminator (by default, `'\n'`). Use
$(REF newline, std,ascii) for portability (unless the file was opened in
text mode).

Returns:
0 for end of file, otherwise number of characters read
0 for end of file, otherwise number of characters read (i.e., buf.length)
mmtrebuchet marked this conversation as resolved.
Show resolved Hide resolved

Throws: `StdioException` on I/O error, or `UnicodeException` on Unicode
conversion error.
Expand Down