Skip to content

Commit 9809dc9

Browse files
authored
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 <schveiguy@users.noreply.github.com>
2 parents df63da0 + 45fb787 commit 9809dc9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

changelog/2.079.0.dd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $(BUGSTITLE_TEXT_HEADER Library changes,
4343
$(LI $(RELATIVE_LINK2 compile-time-format-optimized,`std.format` with strings passed during compile-time has been optimized))
4444
$(LI $(RELATIVE_LINK2 fix18397,Changed `std.conv.hexString` to return an immutable string literal))
4545
$(LI $(RELATIVE_LINK2 nullable-class,`Nullable!C.nullify` no longer calls .destroy when `C` is a class or interface))
46-
$(LI $(RELATIVE_LINK2 std-algorithm-iteration-substitute,`std.algorithm.searching.substitute` was added))
46+
$(LI $(RELATIVE_LINK2 std-algorithm-iteration-substitute,`std.algorithm.iteration.substitute` was added))
4747
$(LI $(RELATIVE_LINK2 std-bigint-divmod,`divMod` was added to std.bigint.))
4848
$(LI $(RELATIVE_LINK2 std-bigint-getDigit,`getDigit` Was Added To `std.bigint`))
4949
$(LI $(RELATIVE_LINK2 std-exception-enforce,std.exception.enforce can now be used as an eponymous template to create your own enforce function))
@@ -918,15 +918,15 @@ class or interface instances, and the above code will now work correctly.
918918
)
919919
)
920920

921-
$(LI $(LNAME2 std-algorithm-iteration-substitute,`std.algorithm.searching.substitute` was added)
921+
$(LI $(LNAME2 std-algorithm-iteration-substitute,`std.algorithm.iteration.substitute` was added)
922922
$(P
923-
$(REF substitute, std,algorithm,searching) yields a lazy range with
924-
all occurrences of `substs` in `r` replaced with their substitution:
923+
$(REF substitute, std,algorithm,iteration) yields a lazy range with
924+
all occurrences of the substitution patterns in `r` replaced with their substitution:
925925
)
926926

927927
---
928928
import std.algorithm.comparison : equal;
929-
import std.algorithm.searching : substitute;
929+
import std.algorithm.iteration : substitute;
930930

931931
// substitute single elements
932932
assert("do_it".substitute('_', ' ').equal("do it"));
@@ -957,7 +957,7 @@ template overload can be used:
957957

958958
---
959959
import std.algorithm.comparison : equal;
960-
import std.algorithm.searching : substitute;
960+
import std.algorithm.iteration : substitute;
961961

962962
// substitute subranges of a range
963963
assert("apple_tree".substitute!("apple", "banana",

0 commit comments

Comments
 (0)