Skip to content

Commit

Permalink
Update main.php
Browse files Browse the repository at this point in the history
变量挪到比较运算符右侧
  • Loading branch information
git-zjx authored Apr 4, 2019
1 parent 43201e8 commit c3ac273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/07_linkedlist/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function deleteLastKth($index)
++$i;
}

if ($fast == null) {
if (null == $fast) {
return true;
}

Expand Down Expand Up @@ -305,4 +305,4 @@ public function findMiddleNode()
$listAlgo->setList($list);
$middleNode = $listAlgo->findMiddleNode();
var_dump($middleNode->data);
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;

0 comments on commit c3ac273

Please sign in to comment.