Skip to content

Commit fcec891

Browse files
author
Adriano Santos
committed
Merge branch 'feat/new-streams-api' of https://github.com/sleipnir/grpc into feat/new-streams-api
2 parents 69d7ba5 + 817dd81 commit fcec891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/grpc/stream.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ defmodule GRPC.Stream do
300300
defdelegate filter(stream, filter), to: Operators
301301

302302
@doc """
303-
Applies a mapping function and flattens the results (one level deep).
303+
Applies a function to each entry and concatenates the resulting lists.
304304
305305
Useful for emitting multiple messages for each input.
306306
"""
307307
@spec flat_map(t, (term -> Enumerable.t())) :: t()
308308
defdelegate flat_map(stream, flat_mapper), to: Operators
309309

310310
@doc """
311-
Applies a transformation function to each stream item.
311+
Applies a function to each stream item.
312312
"""
313313
@spec map(t(), (term -> term)) :: t()
314314
defdelegate map(stream, mapper), to: Operators

0 commit comments

Comments
 (0)