Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dead links in docs of Enumerable#chunks and Iterator#chunk #6941

Merged
merged 3 commits into from
Dec 31, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix docs of Enumerable#chunks
  • Loading branch information
r00ster committed Oct 14, 2018
commit b53d418e0bd351c9a2210f04a6d3403a51065926
5 changes: 0 additions & 5 deletions src/enumerable.cr
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ module Enumerable(T)
# ary # => [{false, [3, 1]}, {true, [4]}, {false, [1, 5, 9]}, {true, [2, 6]}, {false, [5, 3, 5]}]
# ```
#
# The following key values have special meaning:
#
# * `Enumerable::Chunk::Drop` specifies that the elements should be dropped
# * `Enumerable::Chunk::Alone` specifies that the element should be chunked by itself
#
# See also: `Iterator#chunk`.
def chunks(&block : T -> U) forall U
res = [] of Tuple(U, Array(T))
Expand Down
5 changes: 0 additions & 5 deletions src/iterator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1223,11 +1223,6 @@ module Iterator(T)
# # [false, [5, 3, 5]]
# ```
#
# The following key values have special meaning:
#
# * `Enumerable::Chunk::Drop` specifies that the elements should be dropped
# * `Enumerable::Chunk::Alone` specifies that the element should be chunked by itself
#
# By default, a new array is created and yielded for each chunk when invoking `next`.
# * If *reuse* is given, the array can be reused
# * If *reuse* is an `Array`, this array will be reused
Expand Down