D-Programming-Language/phobos — pull request #547 by eco (2012-04-21 02:53:24+00:00)
Title: fix Issue 6222 - A problem with iota() using size_t

If the common type of begin and end is unsigned and end is 0 the private
member pastEnd ends up being unsigned.max due to "pastEnd - 1" (used to make
end not inclusive) which results in iota behaving incorrectly. A simple change
to always make an empty range when begin==end prevents this.

Also fixed and clarified the documentation.