Skip to content

Commit

Permalink
docs: Update CreateBucketPubSubNotification to have line without hori…
Browse files Browse the repository at this point in the history
…zontal scrolling (#1335)



If you write sample code, please follow the [samples format](
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
  • Loading branch information
sydney-munro committed Mar 31, 2022
1 parent fa9920d commit 09b7842
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -58,7 +58,8 @@ public static void createBucketPubSubNotification(
.setPayloadFormat(payloadFormat)
.build();
Notification notification = storage.createNotification(bucketName, notificationInfo);
System.out.println("Successfully created notification for topic " + notification.getTopic());
String topic = notification.getTopic();
System.out.println("Successfully created notification for topic " + topic);
}
}
// [END storage_create_bucket_notifications]

0 comments on commit 09b7842

Please sign in to comment.