From b9c7e6ba782af0de1b7e49458676ab040e3de81a Mon Sep 17 00:00:00 2001 From: labtopia Date: Fri, 1 Jun 2018 15:14:39 -0700 Subject: [PATCH] Move description from docs into code sample As part of making the GCF docs language-agnostic, we are removing language-specific comments from the text and putting them into the code samples instead as code comments. --- functions/helloworld/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/helloworld/index.js b/functions/helloworld/index.js index 32ceeb4263..0b27563cb0 100644 --- a/functions/helloworld/index.js +++ b/functions/helloworld/index.js @@ -56,6 +56,8 @@ exports.helloBackground = (event, callback) => { // [START functions_helloworld_pubsub] /** * Background Cloud Function to be triggered by Pub/Sub. + * This function is exported by index.js, and executed when + * the trigger topic receives a message. * * @param {object} event The Cloud Functions event. * @param {function} callback The callback function.