Skip to content

Commit 2abc86d

Browse files
committed
typo
1 parent 8fb7d74 commit 2abc86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/Vectors.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ sealed trait Vector extends Serializable {
7373
*/
7474
override def hashCode(): Int = {
7575
// This is a reference implementation. It calls return in foreachActive, which is slow.
76+
// Subclasses should override it with optimized implementation.
7677
var result: Int = 31 + size
7778
this.foreachActive { (index, value) =>
7879
if (index < 16) {
79-
// ignore explict 0 for comparison between sparse and dense
80+
// ignore explicit 0 for comparison between sparse and dense
8081
if (value != 0) {
8182
result = 31 * result + index
8283
val bits = java.lang.Double.doubleToLongBits(value)

0 commit comments

Comments
 (0)