From ea32f185a0b3d6243e7f9329cb4ddd8914cefcbf Mon Sep 17 00:00:00 2001 From: Rodrigo Jacznik Date: Wed, 5 Apr 2023 06:33:33 -0300 Subject: [PATCH] fix: corrige typo en nombre de funciones y variables --- src/cli.js | 4 ++-- src/core.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli.js b/src/cli.js index 7c6a900e..5011552b 100644 --- a/src/cli.js +++ b/src/cli.js @@ -6,10 +6,10 @@ const readline = createInterface({ output: process.stdout, }); -const AVIABLE_FNS = [...Object.keys(core), 'exit'].join(', ') +const AVAILABLE_FNS = [...Object.keys(core), 'exit'].join(', ') async function loop() { - const fnName = await readline.question(`Ingrese función (${AVIABLE_FNS}): `) + const fnName = await readline.question(`Ingrese función (${AVAILABLE_FNS}): `) if (fnName === "exit") { console.log("👋👋👋"); diff --git a/src/core.js b/src/core.js index 29b06f44..2bab98df 100644 --- a/src/core.js +++ b/src/core.js @@ -1,7 +1,7 @@ function add(a, b) { } -function substract(a, b) { +function subtract(a, b) { } function multiply(a, b) { @@ -15,7 +15,7 @@ function pow(a, b) { export default { add: add, - sub: substract, + sub: subtract, mul: multiply, div: divide, pow: pow