Skip to content

Commit 277cf28

Browse files
Merge pull request wangzheng0822#289 from git-zjx/patch-3
Update main.php
2 parents ea402c7 + c3ac273 commit 277cf28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/07_linkedlist/main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function deleteLastKth($index)
191191
++$i;
192192
}
193193

194-
if ($fast == null) {
194+
if (null == $fast) {
195195
return true;
196196
}
197197

@@ -305,4 +305,4 @@ public function findMiddleNode()
305305
$listAlgo->setList($list);
306306
$middleNode = $listAlgo->findMiddleNode();
307307
var_dump($middleNode->data);
308-
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;
308+
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;

0 commit comments

Comments
 (0)