Skip to content
Merged
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
12 changes: 6 additions & 6 deletions functions/tips/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const fileWideComputation = lightComputation;
const instanceVar = heavyComputation();

/**
* HTTP Cloud Function that declares a variable.
* HTTP function that declares a variable.
*
* @param {Object} req Cloud Function request context.
* @param {Object} res Cloud Function response context.
* @param {Object} req request context.
* @param {Object} res response context.
*/
exports.scopeDemo = (req, res) => {
// Per-function scope
Expand All @@ -57,10 +57,10 @@ const nonLazyGlobal = fileWideComputation();
let lazyGlobal;

/**
* HTTP Cloud Function that uses lazy-initialized globals
* HTTP function that uses lazy-initialized globals
*
* @param {Object} req Cloud Function request context.
* @param {Object} res Cloud Function response context.
* @param {Object} req request context.
* @param {Object} res response context.
*/
exports.lazyGlobals = (req, res) => {
// This value is initialized only if (and when) the function is called
Expand Down