Merge "Update an old comment that predated IPv6"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 1 May 2019 18:25:10 +0000 (18:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 1 May 2019 18:25:10 +0000 (18:25 +0000)
includes/Block.php

index 489cc66..0d13f7d 100644 (file)
@@ -391,8 +391,7 @@ class Block {
                                $start = Wikimedia\base_convert( $block->getRangeStart(), 16, 10 );
                                $size = log( $end - $start + 1, 2 );
 
-                               # This has the nice property that a /32 block is ranked equally with a
-                               # single-IP block, which is exactly what it is...
+                               # Rank a range block covering a single IP equally with a single-IP block
                                $score = self::TYPE_RANGE - 1 + ( $size / 128 );
 
                        } else {