diff --git a/src/file.ts b/src/file.ts index 93d0538cc..02a985b1c 100644 --- a/src/file.ts +++ b/src/file.ts @@ -3073,8 +3073,8 @@ class File extends ServiceObject { * const bucket = storage.bucket('albums'); * const file = bucket.file('my-file'); * + * // publicUrl will be "https://storage.googleapis.com/albums/my-file" * const publicUrl = file.publicUrl(); - * // publicUrl will be "https://storage.googleapis.com/albums/my-file" */ publicUrl(): string { return `${this.storage.apiEndpoint}/${this.bucket.name}/${this.name}`;