| ... | @@ -3785,6 +3785,7 @@ test rotate { | ... | @@ -3785,6 +3785,7 @@ test rotate { |
| 3785 | | 3785 | |
| 3786 | /// Replace needle with replacement as many times as possible, writing to an output buffer which is assumed to be of | 3786 | /// Replace needle with replacement as many times as possible, writing to an output buffer which is assumed to be of |
| 3787 | /// appropriate size. Use replacementSize to calculate an appropriate buffer size. | 3787 | /// appropriate size. Use replacementSize to calculate an appropriate buffer size. |
| | 3788 | /// The `input` and `output` slices must not overlap. |
| 3788 | /// The needle must not be empty. | 3789 | /// The needle must not be empty. |
| 3789 | /// Returns the number of replacements made. | 3790 | /// Returns the number of replacements made. |
| 3790 | pub fn replace(comptime T: type, input: []const T, needle: []const T, replacement: []const T, output: []T) usize { | 3791 | pub fn replace(comptime T: type, input: []const T, needle: []const T, replacement: []const T, output: []T) usize { |