Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixed typo #1803

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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