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 callmehiphop committed May 16, 2019
1 parent 54bac65 commit 32e8ab4
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 32e8ab4

Please sign in to comment.