D-Programming-Language/phobos — pull request #1012 by Poita (2012-12-15 23:12:04+00:00)
Title: Corrected constraints for std.algorithm.endsWith

Previously endsWith constraints only required input ranges, but the algorithm uses `back` and `popBack` within, so clearly a bidirectional range is needed.