@@ -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,
@@ -195,7 +195,7 @@ defmodule Stream do
195195 from `pad` if it was passed. If `pad` is passed and does not
196196 have enough elements to fill the chunk, then the chunk is
197197 returned anyway with less than `n` elements. If `pad` is not
198- passed at all or is nil, then the partial chunk is discarded
198+ passed at all or is ` nil` , then the partial chunk is discarded
199199 from the result.
200200
201201 ## Examples
@@ -231,7 +231,7 @@ defmodule Stream do
231231 @ doc """
232232 Chunks the `enum` by buffering elements for which `fun` returns
233233 the same value and only emit them when `fun` returns a new value
234- or the `enum` finishes,
234+ or the `enum` finishes.
235235
236236 ## Examples
237237
@@ -305,7 +305,7 @@ defmodule Stream do
305305
306306 @ doc """
307307 Lazily drops elements of the enumerable while the given
308- function returns true.
308+ function returns ` true` .
309309
310310 ## Examples
311311
@@ -363,10 +363,10 @@ defmodule Stream do
363363 end
364364
365365 @ doc """
366- Creates a stream that filters and then map elements according
367- to given funtions .
366+ Creates a stream that filters and then maps elements according
367+ to given functions .
368368
369- It exists for simmetry with Enum.filter_map/3.
369+ Exists for symmetry with ` Enum.filter_map/3` .
370370
371371 ## Examples
372372
@@ -398,7 +398,7 @@ defmodule Stream do
398398
399399 @ doc """
400400 Creates a stream that applies the given function to each
401- element, emits the result and uses the same result as accumulator
401+ element, emits the result and uses the same result as the accumulator
402402 for the next computation.
403403
404404 ## Examples
@@ -415,8 +415,8 @@ defmodule Stream do
415415
416416 @ doc """
417417 Creates a stream that applies the given function to each
418- element, emits the result and uses the same result as accumulator
419- for the next computation. Uses the given `acc` as starting value.
418+ element, emits the result and uses the same result as the accumulator
419+ for the next computation. Uses the given `acc` as the starting value.
420420
421421 ## Examples
422422
@@ -512,7 +512,7 @@ defmodule Stream do
512512
513513 ## Examples
514514
515- Open up a file, replace all # by % and stream to another file
515+ Open up a file, replace all `#` by `%` and stream to another file
516516 without loading the whole file in memory:
517517
518518 stream = File.stream!("code")
@@ -536,7 +536,7 @@ defmodule Stream do
536536 For such, the collection is fully enumerated keeping up to `2 * n`
537537 elements in memory. Once the end of the collection is reached,
538538 the last `count` elements will be executed. Therefore, using
539- a negative `n` in an infinite collection will never return.
539+ a negative `n` on an infinite collection will never return.
540540
541541 ## Examples
542542
@@ -592,7 +592,7 @@ defmodule Stream do
592592 @ doc """
593593 Creates a stream that takes every `n` item from the enumerable.
594594
595- The first item is always included, unless n is 0.
595+ The first item is always included, unless `n` is 0.
596596
597597 ## Examples
598598
@@ -610,7 +610,7 @@ defmodule Stream do
610610
611611 @ doc """
612612 Lazily takes elements of the enumerable while the given
613- function returns true.
613+ function returns ` true` .
614614
615615 ## Examples
616616
@@ -625,10 +625,10 @@ defmodule Stream do
625625 end
626626
627627 @ doc """
628- Creates a stream that only emits elements if they are uniq .
628+ Creates a stream that only emits elements if they are unique .
629629
630630 Keep in mind that, in order to know if an element is unique
631- or not, this function needs to store all uniq values emitted
631+ or not, this function needs to store all unique values emitted
632632 by the stream. Therefore, if the stream is infinite, the number
633633 of items stored will grow infinitely, never being garbage collected.
634634
@@ -649,7 +649,7 @@ defmodule Stream do
649649
650650 @ doc """
651651 Creates a stream where each item in the enumerable will
652- be accompanied by its index.
652+ be wrapped in a tuple alongside its index.
653653
654654 ## Examples
655655
@@ -859,7 +859,7 @@ defmodule Stream do
859859 Successive values are generated by calling `next_fun` with the
860860 previous accumulator (the initial value being the result returned
861861 by `start_fun`) and it must return a tuple with the current and
862- next accumulator. The enumeration finishes if it returns nil.
862+ next accumulator. The enumeration finishes if it returns ` nil` .
863863
864864 As the name says, this function is useful to stream values from
865865 resources.
@@ -911,7 +911,7 @@ defmodule Stream do
911911
912912 Successive values are generated by calling `next_fun` with the previous
913913 accumulator and it must return a tuple with the current and next
914- accumulator. The enumeration finishes if it returns nil.
914+ accumulator. The enumeration finishes if it returns ` nil` .
915915
916916 ## Examples
917917
0 commit comments