We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c89651 commit 0bb9438Copy full SHA for 0bb9438
1 file changed
google-cloud-storage/README.md
@@ -123,14 +123,14 @@ Then add the following code to list all your buckets and all the blobs inside yo
123
124
```java
125
// List all your buckets
126
-Iterator<Bucket> bucketIterator = storage.list().iterateAll();
+Iterator<Bucket> bucketIterator = storage.list().iterateAll().iterator();
127
System.out.println("My buckets:");
128
while (bucketIterator.hasNext()) {
129
System.out.println(bucketIterator.next());
130
}
131
132
// List the blobs in a particular bucket
133
-Iterator<Blob> blobIterator = bucket.list().iterateAll();
+Iterator<Blob> blobIterator = bucket.list().iterateAll().iterator();
134
System.out.println("My blobs:");
135
while (blobIterator.hasNext()) {
136
System.out.println(blobIterator.next());
0 commit comments