Skip to content

Commit

Permalink
document that chunkSize must be greater than zero
Browse files Browse the repository at this point in the history
There's an assert(chunkSize != 0) in the constructor which needs to be
documented.
  • Loading branch information
aG0aep6G committed Dec 7, 2015
1 parent 4a12bd6 commit 1a2ef53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/range/package.d
Expand Up @@ -6116,7 +6116,8 @@ Indexed!(Source, Indices) indexed(Source, Indices)(Source source, Indices indice

/**
This range iterates over fixed-sized chunks of size $(D chunkSize) of a
$(D source) range. $(D Source) must be a forward range.
$(D source) range. $(D Source) must be a forward range. $(D chunkSize) must be
greater than zero.
If $(D !isInfinite!Source) and $(D source.walkLength) is not evenly
divisible by $(D chunkSize), the back element of this range will contain
Expand Down

0 comments on commit 1a2ef53

Please sign in to comment.