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 80943ee commit 5c75d47Copy full SHA for 5c75d47
compiler/src/dotty/tools/dotc/util/DiffUtil.scala
@@ -191,7 +191,7 @@ object DiffUtil {
191
}
192
193
private def needlemanWunsch(x: Array[String], y: Array[String], builder: mutable.ArrayBuilder[Patch]): Unit = {
194
- def similarity(a: String, b: String) = if (a == b) 2 else -1
+ def similarity(a: String, b: String) = if (a == b) 3 else -1
195
val d = 1
196
val score = Array.tabulate(x.length + 1, y.length + 1) { (i, j) =>
197
if (i == 0) d * j
0 commit comments