www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18524] New: std.range.Zip.moveBack instead performs moveFront

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 puremagic.com
          Reporter: n8sh.secondary 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)));
```

--
Feb 25 2018