mem.replace: Document that input/output cannot overlap
This commit is contained in:
committed by
Alex Rønne Petersen
parent
35de86906d
commit
72017d4bd5
@@ -3785,6 +3785,7 @@ test rotate {
|
||||
|
||||
/// Replace needle with replacement as many times as possible, writing to an output buffer which is assumed to be of
|
||||
/// appropriate size. Use replacementSize to calculate an appropriate buffer size.
|
||||
/// The `input` and `output` slices must not overlap.
|
||||
/// The needle must not be empty.
|
||||
/// Returns the number of replacements made.
|
||||
pub fn replace(comptime T: type, input: []const T, needle: []const T, replacement: []const T, output: []T) usize {
|
||||
|
||||
Reference in New Issue
Block a user