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 7a75a09 commit e361894Copy full SHA for e361894
library/src/scala/collection/mutable/ListBuffer.scala
@@ -186,6 +186,7 @@ class ListBuffer[A]
186
last0 = null
187
}
188
189
+ // returns the `::` at `i - 1` (such that its `next` at position `i` can be mutated), or `null` if `i == 0`.
190
private def locate(i: Int): Predecessor[A] =
191
if (i == 0) null
192
else if (i == len) last0
0 commit comments