Skip to content

Commit 7d53a90

Browse files
committed
Fix(?)
1 parent d924263 commit 7d53a90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

std/stdio.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4730,12 +4730,11 @@ struct lines
47304730
This is a first attempt at working towards that goal.
47314731
For now, this test doesn't do much; as there isn't much to do safely yet.
47324732
*/
4733-
static import std.file;
4734-
47354733
auto deleteMe = testFilename();
47364734
scope(exit) { imported!"std.file".remove(deleteMe); }
47374735

47384736
auto f = File(deleteMe, "r");
4737+
scope(exit) { f.close(); }
47394738

47404739
auto myLines = lines(f);
47414740
foreach (string line; myLines)

0 commit comments

Comments
 (0)