diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index ce7b5164ccb..9d6aef03ba6 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -55,30 +55,30 @@ npm install @google-cloud/compute ### Using the client library ```javascript - // Imports the Google Cloud client library - const Compute = require('@google-cloud/compute'); +// Imports the Google Cloud client library +const Compute = require('@google-cloud/compute'); - // Creates a client - const compute = new Compute(); +// Creates a client +const compute = new Compute(); - async function quickstart() { - // Create a new VM using the latest OS image of your choice. - const zone = compute.zone('us-central1-c'); +async function quickstart() { + // Create a new VM using the latest OS image of your choice. + const zone = compute.zone('us-central1-c'); - // TODO(developer): choose a name for the VM - // const vmName = 'vm-name'; + // TODO(developer): choose a name for the VM + // const vmName = 'vm-name'; - // Start the VM create task - const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'}); - console.log(vm); + // Start the VM create task + const [vm, operation] = await zone.createVM(vmName, {os: 'ubuntu'}); + console.log(vm); - // `operation` lets you check the status of long-running tasks. - await operation.promise(); + // `operation` lets you check the status of long-running tasks. + await operation.promise(); - // Complete! - console.log('Virtual machine created!'); - } - quickstart(); + // Complete! + console.log('Virtual machine created!'); +} +quickstart(); ```