mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Fix Issue 18752 - std.file.read runnable example fails
This commit is contained in:
parent
ad6be4e381
commit
f9cd2af795
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ if (isInputRange!R && isSomeChar!(ElementEncodingType!R) && !isInfinite!R &&
|
|||
remove(deleteme);
|
||||
}
|
||||
|
||||
write(deleteme, "1234"); // deleteme is the name of a temporary file
|
||||
std.file.write(deleteme, "1234"); // deleteme is the name of a temporary file
|
||||
assert(read(deleteme, 2) == "12");
|
||||
assert(read(deleteme.byChar) == "1234");
|
||||
assert((cast(const(ubyte)[])read(deleteme)).length == 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue