summaryrefslogtreecommitdiff
path: root/lib/elixir/lib/stream.ex
diff options
context:
space:
mode:
authorEksperimental <eksperimental@users.noreply.github.com>2017-05-14 14:32:43 -0500
committerJosé Valim <jose.valim@gmail.com>2017-05-14 21:32:43 +0200
commit6a2cfef1a2f9fb740621d0e9731dca3ba9e33654 (patch)
tree3553f64eaa7cc089d76c1ed1689776d358cc221d /lib/elixir/lib/stream.ex
parent9747e58db773c716c01c210642ec1d91475e0c83 (diff)
downloadelixir-6a2cfef1a2f9fb740621d0e9731dca3ba9e33654.tar.gz
Remove unnecessary specs for funs with default arguments (#6095)
The command used to detect these lines is: $ ag "(\@spec\s+[a-zA-Z0-9_?!]+\()[^\n]*\s*\1" -A2
Diffstat (limited to 'lib/elixir/lib/stream.ex')
-rw-r--r--lib/elixir/lib/stream.ex2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/elixir/lib/stream.ex b/lib/elixir/lib/stream.ex
index 93f891506..aa69aaf42 100644
--- a/lib/elixir/lib/stream.ex
+++ b/lib/elixir/lib/stream.ex
@@ -155,7 +155,6 @@ defmodule Stream do
[[1, 2, 3], [4, 5, 6]]
"""
- @spec chunk(Enumerable.t, pos_integer, pos_integer) :: Enumerable.t
@spec chunk(Enumerable.t, pos_integer, pos_integer, Enumerable.t | nil) :: Enumerable.t
def chunk(enum, n, step, leftover \\ nil)
when is_integer(n) and n > 0 and is_integer(step) and step > 0 do
@@ -954,7 +953,6 @@ defmodule Stream do
[{1, 3}, {2, 4}, {3, 5}]
"""
- @spec with_index(Enumerable.t) :: Enumerable.t
@spec with_index(Enumerable.t, integer) :: Enumerable.t
def with_index(enum, offset \\ 0) do
lazy enum, offset, fn(f1) -> R.with_index(f1) end