Skip to content

Commit 6ddc4e7

Browse files
haraldreingruberTakashi Matsuo
andauthored
docs: fixes small typo (#553)
* docs: Fixes small typo * docs: Add missing gce_startup_script end comment * lint fix * copyright fix Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
1 parent 2f2c9c6 commit 6ddc4e7

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

compute/sendgrid.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2016, Google, Inc.
1+
// Copyright 2015 Google, Inc
22
// Licensed under the Apache License, Version 2.0 (the "License");
33
// you may not use this file except in compliance with the License.
44
// You may obtain a copy of the License at
@@ -24,8 +24,7 @@ async function sendgridExample() {
2424
to: 'to_email@example.com',
2525
from: 'from_email@example.com',
2626
subject: 'Sendgrid test email from Node.js on Google Cloud Platform',
27-
text:
28-
'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
27+
text: 'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
2928
});
3029
}
3130
sendgridExample();

compute/startupScript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function main(name = 'start-script-example') {
7272
console.log('Operation complete. Waiting for IP');
7373
await pingVM(ip);
7474

75-
console.log(`\n${name} created succesfully`);
75+
console.log(`\n${name} created successfully`);
7676
}
7777

7878
/**
@@ -96,6 +96,7 @@ async function main(name = 'start-script-example') {
9696
}
9797

9898
createVMWithStartupScript();
99+
// [END gce_startup_script]
99100
}
100101

101102
main(...process.argv.slice(2));

compute/test/sendgrid.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ describe('sendgrid', () => {
3232
from: 'from_email@example.com',
3333
subject:
3434
'Sendgrid test email from Node.js on Google Cloud Platform',
35-
text:
36-
'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
35+
text: 'Well hello! This is a Sendgrid test email from Node.js on Google Cloud Platform.',
3736
});
3837
},
3938
},

0 commit comments

Comments
 (0)