Skip to content

Commit d815a7d

Browse files
author
Jamie Hannaford
committed
Merge pull request #239 from Bittarman/patch-1
Correct syntax error in example
2 parents bc80ef6 + 4e48670 commit d815a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/userguide/images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To access all of the available images on a given compute instance, the
2020
`ImageList` [Collection](collections.md) is used:
2121

2222
$imlist = $compute->ImageList();
23-
foreach($image = $imlist->Next())
23+
while($image = $imlist->Next())
2424
printf("Image: %s id=%s\n", $image->name, $image->id);
2525

2626
This prints a list of all of the accessible images for your account in the

0 commit comments

Comments
 (0)