Improve docs & api

This commit is contained in:
Andras Schmelczer 2025-06-29 15:48:50 +01:00
parent c682520b88
commit 17f67602d9
4 changed files with 15 additions and 17 deletions

View file

@ -222,7 +222,7 @@ where
builder = operation.apply(builder);
}
builder.build()
builder.take()
}
#[must_use]

View file

@ -421,7 +421,7 @@ mod tests {
let mut builder = delete_operation.apply(builder);
builder = retain_operation.apply(builder);
assert_eq!(builder.build(), "world");
assert_eq!(builder.take(), "world");
}
#[test]
@ -434,6 +434,6 @@ mod tests {
let mut builder = retain_operation.apply(builder);
builder = insert_operation.apply(builder);
assert_eq!(builder.build(), "hello my friend");
assert_eq!(builder.take(), "hello my friend");
}
}