From 6a2cfef1a2f9fb740621d0e9731dca3ba9e33654 Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Sun, 14 May 2017 14:32:43 -0500 Subject: 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 --- lib/elixir/lib/stream.ex | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/elixir/lib/stream.ex') 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 -- cgit v1.2.1