From 4e486700b7a91b34efa0d8d944ddfee95d0540e2 Mon Sep 17 00:00:00 2001 From: Ryan Mauger Date: Wed, 4 Dec 2013 13:19:13 +0000 Subject: [PATCH] Correct syntax error in example foreach ($image = $imlist->next()) is not valid php syntax. --- docs/userguide/images.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/userguide/images.md b/docs/userguide/images.md index 141f9dd7a..8d58cdd08 100755 --- a/docs/userguide/images.md +++ b/docs/userguide/images.md @@ -20,7 +20,7 @@ To access all of the available images on a given compute instance, the `ImageList` [Collection](collections.md) is used: $imlist = $compute->ImageList(); - foreach($image = $imlist->Next()) + while($image = $imlist->Next()) printf("Image: %s id=%s\n", $image->name, $image->id); This prints a list of all of the accessible images for your account in the