Skip to content

Commit 16fab74

Browse files
0xflotuscallmehiphop
authored andcommitted
docs(samples): fix description typo (#344)
1 parent f1a7d0a commit 16fab74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogflow/detect.v2beta1.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ async function detectIntentKnowledge(
420420
console.log(`Confidence: ${result.intentDetectionConfidence}`);
421421
console.log(`Query Result: ${result.fulfillmentText}`);
422422
const answers = result.knowledgeAnswers.answers;
423-
console.log(`There are ${answers.length} anwser(s);`);
423+
console.log(`There are ${answers.length} answer(s);`);
424424
answers.forEach(a => {
425425
console.log(` answer: ${a.answer}`);
426426
console.log(` confidence: ${a.matchConfidence}`);
@@ -697,7 +697,7 @@ const cli = require(`yargs`)
697697
)
698698
.command(
699699
`detectIntentKnowledge`,
700-
`Detects anwsers from knowledge base queries`,
700+
`Detects answers from knowledge base queries`,
701701
{},
702702
opts =>
703703
detectIntentKnowledge(

0 commit comments

Comments
 (0)