← Back to index
|
Original Bugzilla link
Bug 18524 – std.range.Zip.moveBack instead performs moveFront
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-26T05:57:06Z
Last change time
2018-02-26T20:01:02Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0
by n8sh.secondary — 2018-02-26T05:57:06Z
There is a typo in the first line, `moveFront` instead of `moveBack`:
https://github.com/dlang/phobos/blob/6128ed629f6a180413b3965386004c39fb577d5a/std/range/package.d#L4169-L4171
``` @property tryMoveBack(size_t i)(){return ranges[i].empty ? tryGetInit!i() : ranges[i].moveFront();} //ElementType(tryMoveBack!0, tryMoveBack!1, ...) return mixin(q{ElementType(%(tryMoveBack!%s, %))}.format(iota(0, R.length))); ```
Comment #1
by n8sh.secondary — 2018-02-26T05:58:44Z
Pull request:
https://github.com/dlang/phobos/pull/6223
Comment #2
by github-bugzilla — 2018-02-26T20:01:01Z
Commits pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/a5b69d54870fb56c92c23be875b34f1238c4ed8d
Fix Issue 18524 - std.range.Zip.moveBack instead performs moveFront
https://github.com/dlang/phobos/commit/b4a9de07648945f802c6287df62d9c700e249583
Merge pull request #6223 from n8sh/zip-moveBack Fix Issue 18524 - std.range.Zip.moveBack instead performs moveFront