From fd1d1b92b75f450c9a70873da5b270ffe432e3c4 Mon Sep 17 00:00:00 2001 From: Neil Lyons Date: Fri, 27 Oct 2023 13:26:07 +0100 Subject: [PATCH] Fix Timex.Duration.zero/0 documentation example --- lib/time/duration.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/time/duration.ex b/lib/time/duration.ex index d380fcd9..7f7da7ea 100644 --- a/lib/time/duration.ex +++ b/lib/time/duration.ex @@ -507,7 +507,7 @@ defmodule Timex.Duration do Can be useful for operations on collections of durations. For instance, - Enum.reduce(durations, Duration.zero, Duration.add(&1, &2)) + Enum.reduce(durations, Duration.zero, &Duration.add(&1, &2)) Can also be used to represent the timestamp of the start of the UNIX epoch, as all Erlang timestamps are relative to this point.