From 16fab74224353d0667fbe056dbc568402a671b27 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Thu, 16 May 2019 22:32:20 +0200 Subject: [PATCH] docs(samples): fix description typo (#344) --- dialogflow/detect.v2beta1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialogflow/detect.v2beta1.js b/dialogflow/detect.v2beta1.js index 8b12e45bbc7..e19b3108921 100644 --- a/dialogflow/detect.v2beta1.js +++ b/dialogflow/detect.v2beta1.js @@ -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}`); @@ -697,7 +697,7 @@ const cli = require(`yargs`) ) .command( `detectIntentKnowledge`, - `Detects anwsers from knowledge base queries`, + `Detects answers from knowledge base queries`, {}, opts => detectIntentKnowledge(