diff --git a/Showing-the-pairings-of-a-specific-player.md b/Showing-the-pairings-of-a-specific-player.md index 77ecba9..a8ada23 100644 --- a/Showing-the-pairings-of-a-specific-player.md +++ b/Showing-the-pairings-of-a-specific-player.md @@ -16,7 +16,7 @@ $magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament()); $magnus = $magnusses[0]; -foreach ($magnus->getPairings() as $game) { +foreach ($magnus->getPairings() as $pairing) { $player = $pairing->getPlayer()->getName(); if (!is_null($pairing->getOpponent())) { $opponent = $pairing->getOpponent()->getName();