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

functions/tips: adjust snippet namespaces for multi-purpose use. #1121

Merged
merged 1 commit into from
Jan 31, 2019
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