Skip to content

Commit

Permalink
std.range.package: Document evenChunks retuned chunk size implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Oct 18, 2015
1 parent 04349a9 commit e500230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/range/package.d
Expand Up @@ -6425,10 +6425,10 @@ This range splits a $(D source) range into $(D chunkCount) chunks of
approximately equal length. $(D Source) must be a forward range with
known length.
Unlike $(LREF chunks), $(D evenChunks) takes a chunk count (not size),
and each returned chunk will have either $(D source.length / chunkCount)
or $(D source.length / chunkCount + 1) elements. If $(D source.length <
chunkCount), some chunks will be empty.
Unlike $(LREF chunks), $(D evenChunks) takes a chunk count (not size).
The returned range will contain zero or more $(D source.length /
chunkCount + 1) elements followed by $(D source.length / chunkCount)
elements. If $(D source.length < chunkCount), some chunks will be empty.
$(D chunkCount) must not be zero, unless $(D source) is also empty.
*/
Expand Down

0 comments on commit e500230

Please sign in to comment.