summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/lib/enum.ex3
-rw-r--r--lib/elixir/lib/stream.ex3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/elixir/lib/enum.ex b/lib/elixir/lib/enum.ex
index 911bd9777..595af04aa 100644
--- a/lib/elixir/lib/enum.ex
+++ b/lib/elixir/lib/enum.ex
@@ -1925,7 +1925,8 @@ defmodule Enum do
@doc """
Applies the given function to each element in the enumerable,
storing the result in a list and passing it as the accumulator
- for the next computation.
+ for the next computation. Uses the first element in the enumerable
+ as the starting value.
## Examples
diff --git a/lib/elixir/lib/stream.ex b/lib/elixir/lib/stream.ex
index af04ae165..1ce550597 100644
--- a/lib/elixir/lib/stream.ex
+++ b/lib/elixir/lib/stream.ex
@@ -576,7 +576,8 @@ defmodule Stream do
@doc """
Creates a stream that applies the given function to each
element, emits the result and uses the same result as the accumulator
- for the next computation.
+ for the next computation. Uses the first element in the enumerable
+ as the starting value.
## Examples