Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit dd5fe6f

Browse files
authored
Merge pull request #2086 from smandy/master
Duration examples fail to run on dlang.org without import. merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2 parents ee1b729 + 5e30e7b commit dd5fe6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/time.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ unittest
475475
476476
Examples:
477477
--------------------
478+
import std.datetime;
479+
478480
assert(dur!"days"(12) == dur!"hnsecs"(10_368_000_000_000L));
479481
assert(dur!"hnsecs"(27) == dur!"hnsecs"(27));
480482
assert(std.datetime.Date(2010, 9, 7) + dur!"days"(5) ==

0 commit comments

Comments
 (0)