We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae46bc commit 66512edCopy full SHA for 66512ed
src/commonMain/kotlin/io/github/petertrr/diffutils/patch/Patch.kt
@@ -91,7 +91,7 @@ public class Patch<T>(private var conflictOutput: ConflictOutput<T> = ExceptionP
91
generate(original, revised, changes, false)
92
93
private fun <T> buildChunk(start: Int, end: Int, data: List<T>): Chunk<T> =
94
- Chunk(start, data.subList(start, end))
+ Chunk(start, data.slice(start..<end))
95
96
public fun <T> generate(
97
original: List<T>,
0 commit comments