Skip to content

Commit

Permalink
docs: correct typo in comment (#568)
Browse files Browse the repository at this point in the history
Using a sessionId as number, it causes the following error in
`peg$parsetemplate`:
input.charCodeAt is not a function

Fixes #277

Co-authored-by: Giuseppe Verni <[email protected]>
  • Loading branch information
vernig and gverni authored Mar 24, 2020
1 parent 47c073f commit 535af2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dialogflow/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function detectTextIntent(projectId, sessionId, queries, languageCode) {
*/
// projectId: ID of the GCP project where Dialogflow agent is deployed
// const projectId = 'PROJECT_ID';
// sessionId: Random number or hashed user identifier
// const sessionId = 123456;
// sessionId: String representing a random number or hashed user identifier
// const sessionId = '123456';
// queries: A set of sequential queries to be send to Dialogflow agent for Intent Detection
// const queries = [
// 'Reserve a meeting room in Toronto office, there will be 5 of us',
Expand Down

0 comments on commit 535af2b

Please sign in to comment.