Skip to content

Commit

Permalink
docs(samples): fix description typo (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xflotus authored and NimJay committed Nov 18, 2022
1 parent ce8f902 commit 610a983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dialogflow/detect.v2beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async function detectIntentKnowledge(
console.log(`Confidence: ${result.intentDetectionConfidence}`);
console.log(`Query Result: ${result.fulfillmentText}`);
const answers = result.knowledgeAnswers.answers;
console.log(`There are ${answers.length} anwser(s);`);
console.log(`There are ${answers.length} answer(s);`);
answers.forEach(a => {
console.log(` answer: ${a.answer}`);
console.log(` confidence: ${a.matchConfidence}`);
Expand Down Expand Up @@ -697,7 +697,7 @@ const cli = require(`yargs`)
)
.command(
`detectIntentKnowledge`,
`Detects anwsers from knowledge base queries`,
`Detects answers from knowledge base queries`,
{},
opts =>
detectIntentKnowledge(
Expand Down

0 comments on commit 610a983

Please sign in to comment.