summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2022-01-05 13:23:20 +0100
committerJosé Valim <jose.valim@dashbit.co>2022-01-05 13:23:20 +0100
commite658c64eeef994d07a529f761fd10690123ca852 (patch)
tree24f798289da71b5931313b588bac3bfd91821958
parent8c09306eec4205f4e9d6a3cf728e20c12c60b7a5 (diff)
downloadelixir-e658c64eeef994d07a529f761fd10690123ca852.tar.gz
Run formatter
-rw-r--r--lib/elixir/lib/stream.ex8
-rw-r--r--lib/elixir/test/elixir/stream_test.exs4
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/elixir/lib/stream.ex b/lib/elixir/lib/stream.ex
index f84d8971a..074716160 100644
--- a/lib/elixir/lib/stream.ex
+++ b/lib/elixir/lib/stream.ex
@@ -873,10 +873,10 @@ defmodule Stream do
`Stream.transform/3`.
"""
@spec transform(Enumerable.t(), start_fun, reducer, after_fun) :: Enumerable.t()
- when start_fun: (() -> acc),
- reducer: (element, acc -> {Enumerable.t(), acc} | {:halt, acc}),
- after_fun: (acc -> term),
- acc: any
+ when start_fun: (() -> acc),
+ reducer: (element, acc -> {Enumerable.t(), acc} | {:halt, acc}),
+ after_fun: (acc -> term),
+ acc: any
def transform(enum, start_fun, reducer, after_fun)
when is_function(start_fun, 0) and is_function(reducer, 2) and is_function(after_fun, 1) do
&do_transform(enum, start_fun, reducer, &1, &2, nil, after_fun)
diff --git a/lib/elixir/test/elixir/stream_test.exs b/lib/elixir/test/elixir/stream_test.exs
index 5023dcb7b..8e9e4f23c 100644
--- a/lib/elixir/test/elixir/stream_test.exs
+++ b/lib/elixir/test/elixir/stream_test.exs
@@ -1005,7 +1005,7 @@ defmodule StreamTest do
Stream.transform(
1..5//2,
fn -> 0 end,
- fn i, _acc -> {i..(i + 1), i+1} end,
+ fn i, _acc -> {i..(i + 1), i + 1} end,
fn 6 -> {7..10, 10} end,
fn i when is_integer(i) -> Process.put(__MODULE__, i) end
)
@@ -1028,7 +1028,7 @@ defmodule StreamTest do
Stream.transform(
Stream.take(1..15//2, 3),
fn -> 0 end,
- fn i, _acc -> {i..(i + 1), i+1} end,
+ fn i, _acc -> {i..(i + 1), i + 1} end,
fn 6 -> {7..10, 10} end,
fn i when is_integer(i) -> Process.put(__MODULE__, i) end
)