Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit be76b67

Browse files
authored
updated comment to assign publicUrl variable
1 parent 9bd5de6 commit be76b67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,8 +3073,8 @@ class File extends ServiceObject<File> {
30733073
* const bucket = storage.bucket('albums');
30743074
* const file = bucket.file('my-file');
30753075
*
3076-
* file.publicUrl();
3077-
* // Will return "https://storage.googleapis.com/albums/my-file"
3076+
* const publicUrl = file.publicUrl();
3077+
* // publicUrl will be "https://storage.googleapis.com/albums/my-file"
30783078
*/
30793079
publicUrl(): string {
30803080
return `${this.storage.apiEndpoint}/${this.bucket.name}/${this.name}`;

0 commit comments

Comments
 (0)