@@ -76,7 +76,7 @@ defmodule Stream do
7676 There are many functions in Elixir's standard library that return
7777 streams, some examples are:
7878
79- * `IO.stream/1 ` - Streams input lines, one by one;
79+ * `IO.stream/2 ` - Streams input lines, one by one;
8080 * `URI.query_decoder/1` - Decodes a query string, pair by pair;
8181
8282 This module also provides many convenience functions for creating streams,
@@ -209,7 +209,7 @@ defmodule Stream do
209209 from `pad` if it was passed. If `pad` is passed and does not
210210 have enough elements to fill the chunk, then the chunk is
211211 returned anyway with less than `n` elements. If `pad` is not
212- passed at all or is nil, then the partial chunk is discarded
212+ passed at all or is ` nil` , then the partial chunk is discarded
213213 from the result.
214214
215215 ## Examples
@@ -245,7 +245,7 @@ defmodule Stream do
245245 @ doc """
246246 Chunks the `enum` by buffering elements for which `fun` returns
247247 the same value and only emit them when `fun` returns a new value
248- or the `enum` finishes,
248+ or the `enum` finishes.
249249
250250 ## Examples
251251
@@ -319,7 +319,7 @@ defmodule Stream do
319319
320320 @ doc """
321321 Lazily drops elements of the enumerable while the given
322- function returns true.
322+ function returns ` true` .
323323
324324 ## Examples
325325
@@ -377,10 +377,10 @@ defmodule Stream do
377377 end
378378
379379 @ doc """
380- Creates a stream that filters and then map elements according
381- to given funtions .
380+ Creates a stream that filters and then maps elements according
381+ to given functions .
382382
383- It exists for simmetry with Enum.filter_map/3.
383+ Exists for symmetry with ` Enum.filter_map/3` .
384384
385385 ## Examples
386386
@@ -412,7 +412,7 @@ defmodule Stream do
412412
413413 @ doc """
414414 Creates a stream that applies the given function to each
415- element, emits the result and uses the same result as accumulator
415+ element, emits the result and uses the same result as the accumulator
416416 for the next computation.
417417
418418 ## Examples
@@ -429,8 +429,8 @@ defmodule Stream do
429429
430430 @ doc """
431431 Creates a stream that applies the given function to each
432- element, emits the result and uses the same result as accumulator
433- for the next computation. Uses the given `acc` as starting value.
432+ element, emits the result and uses the same result as the accumulator
433+ for the next computation. Uses the given `acc` as the starting value.
434434
435435 ## Examples
436436
@@ -527,7 +527,7 @@ defmodule Stream do
527527
528528 ## Examples
529529
530- Open up a file, replace all # by % and stream to another file
530+ Open up a file, replace all `#` by `%` and stream to another file
531531 without loading the whole file in memory:
532532
533533 stream = File.stream!("code")
@@ -551,7 +551,7 @@ defmodule Stream do
551551 For such, the collection is fully enumerated keeping up to `2 * n`
552552 elements in memory. Once the end of the collection is reached,
553553 the last `count` elements will be executed. Therefore, using
554- a negative `n` in an infinite collection will never return.
554+ a negative `n` on an infinite collection will never return.
555555
556556 ## Examples
557557
@@ -607,7 +607,7 @@ defmodule Stream do
607607 @ doc """
608608 Creates a stream that takes every `n` item from the enumerable.
609609
610- The first item is always included, unless n is 0.
610+ The first item is always included, unless `n` is 0.
611611
612612 ## Examples
613613
@@ -625,7 +625,7 @@ defmodule Stream do
625625
626626 @ doc """
627627 Lazily takes elements of the enumerable while the given
628- function returns true.
628+ function returns ` true` .
629629
630630 ## Examples
631631
@@ -640,10 +640,10 @@ defmodule Stream do
640640 end
641641
642642 @ doc """
643- Creates a stream that only emits elements if they are uniq .
643+ Creates a stream that only emits elements if they are unique .
644644
645645 Keep in mind that, in order to know if an element is unique
646- or not, this function needs to store all uniq values emitted
646+ or not, this function needs to store all unique values emitted
647647 by the stream. Therefore, if the stream is infinite, the number
648648 of items stored will grow infinitely, never being garbage collected.
649649
@@ -664,7 +664,7 @@ defmodule Stream do
664664
665665 @ doc """
666666 Creates a stream where each item in the enumerable will
667- be accompanied by its index.
667+ be wrapped in a tuple alongside its index.
668668
669669 ## Examples
670670
@@ -885,7 +885,7 @@ defmodule Stream do
885885 Successive values are generated by calling `next_fun` with the
886886 previous accumulator (the initial value being the result returned
887887 by `start_fun`) and it must return a tuple with the current and
888- next accumulator. The enumeration finishes if it returns nil.
888+ next accumulator. The enumeration finishes if it returns ` nil` .
889889
890890 As the name says, this function is useful to stream values from
891891 resources.
@@ -940,7 +940,7 @@ defmodule Stream do
940940
941941 Successive values are generated by calling `next_fun` with the previous
942942 accumulator and it must return a tuple with the current and next
943- accumulator. The enumeration finishes if it returns nil.
943+ accumulator. The enumeration finishes if it returns ` nil` .
944944
945945 ## Examples
946946
0 commit comments