From 727fabf292f867dd73ab648e5e0072ec8f2fe1b7 Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Thu, 22 Aug 2019 12:48:12 +0530 Subject: [PATCH] fix docs --- google-cloud-clients/google-cloud-logging/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-logging/README.md b/google-cloud-clients/google-cloud-logging/README.md index e8065197c9b6..db932935a4a3 100644 --- a/google-cloud-clients/google-cloud-logging/README.md +++ b/google-cloud-clients/google-cloud-logging/README.md @@ -147,7 +147,7 @@ Then, to list the log entries, use the following code: ``` java Page entries = logging.listLogEntries( EntryListOption.filter("logName=projects/" + options.getProjectId() + "/logs/test-log")); -Iterator entryIterator = entries.iterateAll(); +Iterator entryIterator = entries.iterateAll().iterator(); while (entryIterator.hasNext()) { System.out.println(entryIterator.next()); }