Skip to content

Commit

Permalink
fix: fixed typo (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeltop committed Feb 25, 2022
1 parent ca96958 commit be70dae
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion samples/downloadEncryptedFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function main(
destination: destFileName,
};

// Descrypts and downloads the file. This can only be done with the key used
// Decrypts and downloads the file. This can only be done with the key used
// to encrypt and upload the file.
await storage
.bucket(bucketName)
Expand Down
2 changes: 1 addition & 1 deletion samples/fileSetMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function main(bucketName = 'my-bucket', fileName = 'file.txt') {
.bucket(bucketName)
.file(fileName)
.setMetadata({
// Predefinded metadata for server e.g. 'cacheControl', 'contentDisposition',
// Predefined metadata for server e.g. 'cacheControl', 'contentDisposition',
// 'contentEncoding', 'contentLanguage', 'contentType'
contentDisposition: 'attachment; filename*=utf-8\'\'"anotherImage.jpg"',
contentType: 'image/jpeg',
Expand Down
2 changes: 1 addition & 1 deletion samples/system-test/iam.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const expression =

before(async () => {
await bucket.create();
// UniformBucketLevelAccess must be enabled to add a condiitonal binding.
// UniformBucketLevelAccess must be enabled to add a conditional binding.
await bucket.setMetadata({
iamConfiguration: {
uniformBucketLevelAccess: {
Expand Down
2 changes: 1 addition & 1 deletion samples/viewBucketIamMembers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function main(bucketName = 'my-bucket') {

const condition = binding.condition;
if (condition) {
console.log(' Condiiton:');
console.log(' Condition:');
console.log(` Title: ${condition.title}`);
console.log(` Description: ${condition.description}`);
console.log(` Expression: ${condition.expression}`);
Expand Down
2 changes: 1 addition & 1 deletion src/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Iam {
* @throws {Error} If no policy is provided.
*
* @param {Policy} policy The policy.
* @param {SetPolicyOptions} [options] Configuration opbject.
* @param {SetPolicyOptions} [options] Configuration options.
* @param {SetPolicyCallback} callback Callback function.
* @returns {Promise<SetPolicyResponse>}
*
Expand Down
4 changes: 2 additions & 2 deletions src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ export class Storage extends Service {
/**
* @typedef {array} GetBucketsResponse
* @property {Bucket[]} 0 Array of {@link Bucket} instances.
* @property {objcet} 1 nextQuery A query object to receive more results.
* @property {object} 1 nextQuery A query object to receive more results.
* @property {object} 2 The full API response.
*/
/**
Expand Down Expand Up @@ -1413,7 +1413,7 @@ export class Storage extends Service {
* supply the project's ID as `projectId` in the `options` argument.
*
* @param {string} accessId The HMAC key's access ID.
* @param {HmacKeyOptions} options HmacKey constructor owptions.
* @param {HmacKeyOptions} options HmacKey constructor options.
* @returns {HmacKey}
* @see HmacKey
*
Expand Down

0 comments on commit be70dae

Please sign in to comment.