@@ -43,7 +43,7 @@ $(BUGSTITLE_TEXT_HEADER Library changes,
43
43
$(LI $(RELATIVE_LINK2 compile-time-format-optimized,`std.format` with strings passed during compile-time has been optimized))
44
44
$(LI $(RELATIVE_LINK2 fix18397,Changed `std.conv.hexString` to return an immutable string literal))
45
45
$(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))
47
47
$(LI $(RELATIVE_LINK2 std-bigint-divmod,`divMod` was added to std.bigint.))
48
48
$(LI $(RELATIVE_LINK2 std-bigint-getDigit,`getDigit` Was Added To `std.bigint`))
49
49
$(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.
918
918
)
919
919
)
920
920
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)
922
922
$(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:
925
925
)
926
926
927
927
---
928
928
import std.algorithm.comparison : equal;
929
- import std.algorithm.searching : substitute;
929
+ import std.algorithm.iteration : substitute;
930
930
931
931
// substitute single elements
932
932
assert("do_it".substitute('_', ' ').equal("do it"));
@@ -957,7 +957,7 @@ template overload can be used:
957
957
958
958
---
959
959
import std.algorithm.comparison : equal;
960
- import std.algorithm.searching : substitute;
960
+ import std.algorithm.iteration : substitute;
961
961
962
962
// substitute subranges of a range
963
963
assert("apple_tree".substitute!("apple", "banana",
0 commit comments