[Issue 18524] New: std.range.Zip.moveBack instead performs moveFront

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 26 05:57:06 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18524

          Issue ID: 18524
           Summary: std.range.Zip.moveBack instead performs moveFront
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

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)));
```

--


More information about the Digitalmars-d-bugs mailing list