Skip to content

Commit 507fca4

Browse files
committed
refactor: rename Chunk.verify to Chunk.verifyChunk
1 parent ddb32f6 commit 507fca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commonMain/kotlin/io/github/petertrr/diffutils/patch/Chunk.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public data class Chunk<T>(
4040
*
4141
* @param target The sequence to verify against
4242
*/
43-
public fun verify(target: List<T>): VerifyChunk {
43+
public fun verifyChunk(target: List<T>): VerifyChunk {
4444
val targetSize = target.size
4545

4646
if (position > targetSize || last() > targetSize) {

src/commonMain/kotlin/io/github/petertrr/diffutils/patch/Delta.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public sealed class Delta<T>(public val type: DeltaType) {
2929
* Verify the chunk of this delta, to fit the target.
3030
*/
3131
protected open fun verifyChunkToFitTarget(target: List<T>): VerifyChunk =
32-
source.verify(target)
32+
source.verifyChunk(target)
3333

3434
public open fun verifyAndApplyTo(target: MutableList<T>): VerifyChunk {
3535
val verify = verifyChunkToFitTarget(target)

0 commit comments

Comments
 (0)