Skip to content

Commit 15a4d04

Browse files
nwjlyonsbitwalker
authored andcommitted
Fix Timex.Duration.zero/0 documentation example
1 parent 23a4ca1 commit 15a4d04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/time/duration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ defmodule Timex.Duration do
507507
508508
Can be useful for operations on collections of durations. For instance,
509509
510-
Enum.reduce(durations, Duration.zero, Duration.add(&1, &2))
510+
Enum.reduce(durations, Duration.zero, &Duration.add(&1, &2))
511511
512512
Can also be used to represent the timestamp of the start of the UNIX epoch,
513513
as all Erlang timestamps are relative to this point.

0 commit comments

Comments
 (0)