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

Commit be70dae

Browse files
authored
fix: fixed typo (#1803)
1 parent ca96958 commit be70dae

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

samples/downloadEncryptedFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function main(
5656
destination: destFileName,
5757
};
5858

59-
// Descrypts and downloads the file. This can only be done with the key used
59+
// Decrypts and downloads the file. This can only be done with the key used
6060
// to encrypt and upload the file.
6161
await storage
6262
.bucket(bucketName)

samples/fileSetMetadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function main(bucketName = 'my-bucket', fileName = 'file.txt') {
4242
.bucket(bucketName)
4343
.file(fileName)
4444
.setMetadata({
45-
// Predefinded metadata for server e.g. 'cacheControl', 'contentDisposition',
45+
// Predefined metadata for server e.g. 'cacheControl', 'contentDisposition',
4646
// 'contentEncoding', 'contentLanguage', 'contentType'
4747
contentDisposition: 'attachment; filename*=utf-8\'\'"anotherImage.jpg"',
4848
contentType: 'image/jpeg',

samples/system-test/iam.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const expression =
3636

3737
before(async () => {
3838
await bucket.create();
39-
// UniformBucketLevelAccess must be enabled to add a condiitonal binding.
39+
// UniformBucketLevelAccess must be enabled to add a conditional binding.
4040
await bucket.setMetadata({
4141
iamConfiguration: {
4242
uniformBucketLevelAccess: {

samples/viewBucketIamMembers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function main(bucketName = 'my-bucket') {
4747

4848
const condition = binding.condition;
4949
if (condition) {
50-
console.log(' Condiiton:');
50+
console.log(' Condition:');
5151
console.log(` Title: ${condition.title}`);
5252
console.log(` Description: ${condition.description}`);
5353
console.log(` Expression: ${condition.expression}`);

src/iam.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class Iam {
288288
* @throws {Error} If no policy is provided.
289289
*
290290
* @param {Policy} policy The policy.
291-
* @param {SetPolicyOptions} [options] Configuration opbject.
291+
* @param {SetPolicyOptions} [options] Configuration options.
292292
* @param {SetPolicyCallback} callback Callback function.
293293
* @returns {Promise<SetPolicyResponse>}
294294
*

src/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ export class Storage extends Service {
10851085
/**
10861086
* @typedef {array} GetBucketsResponse
10871087
* @property {Bucket[]} 0 Array of {@link Bucket} instances.
1088-
* @property {objcet} 1 nextQuery A query object to receive more results.
1088+
* @property {object} 1 nextQuery A query object to receive more results.
10891089
* @property {object} 2 The full API response.
10901090
*/
10911091
/**
@@ -1413,7 +1413,7 @@ export class Storage extends Service {
14131413
* supply the project's ID as `projectId` in the `options` argument.
14141414
*
14151415
* @param {string} accessId The HMAC key's access ID.
1416-
* @param {HmacKeyOptions} options HmacKey constructor owptions.
1416+
* @param {HmacKeyOptions} options HmacKey constructor options.
14171417
* @returns {HmacKey}
14181418
* @see HmacKey
14191419
*

0 commit comments

Comments
 (0)