Bug 18959 – [Change Log: 2.079.0] substitute was added in std.algorithm.iteration but the changelog points to std.algorithm.searching

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-08T11:01:05Z
Last change time
2018-06-08T13:32:27Z
Assigned to
No Owner
Creator
karthikeyan

Comments

Comment #0 by tir.karthi — 2018-06-08T11:01:05Z
`susbstitute` function was added in 2.79.0 in `std.algorithm.iteration` but the documentation points to `std.algorithm.searching` in the changelog along with the examples using std.algorithm.searching which causes error when I try to compile the example code. I don't know if this needs to be fixed since 2.80.1 is released at this point but I just wanted to point this out. Bugzilla search doesn't give me any tickets. Feel free to close this if it's irrelevant. Thanks for D and all the work.
Comment #1 by greensunny12 — 2018-06-08T11:55:41Z
Thanks a lot for noticing. Initially substitute was supposed to be std.algorithm.searching, but that was later changed and it seems like the changelog entry never got updated. A PR to fix this in the changelog docs: https://github.com/dlang/dlang.org/pull/2386 The code here should compile: https://dlang.org/library/std/algorithm/iteration/substitute.html
Comment #2 by github-bugzilla — 2018-06-08T13:32:27Z
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/f05f3833983e780d7a59d15b579eb5b46b9c5264 Fix Issue 18959 - [Change Log: 2.079.0] substitute was added in std.algorithm.iteration but the changelog points to std.algorithm.searching https://github.com/dlang/dlang.org/commit/9809dc9c6b3180a7646186ac67480ed45543dfd2 Merge pull request #2386 from wilzbach/fix-18959 Fix Issue 18959 - [Change Log: 2.079.0] substitute was added in std.algorithm.iteration but the changelog points to std.algorithm.searching merged-on-behalf-of: Steven Schveighoffer <[email protected]>