Skip to content

Commit

Permalink
fix: corrige typo en nombre de funciones y variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoJacznik committed Apr 5, 2023
1 parent ca2b654 commit ea32f18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("👋👋👋");
Expand Down
4 changes: 2 additions & 2 deletions src/core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function add(a, b) {
}

function substract(a, b) {
function subtract(a, b) {
}

function multiply(a, b) {
Expand All @@ -15,7 +15,7 @@ function pow(a, b) {

export default {
add: add,
sub: substract,
sub: subtract,
mul: multiply,
div: divide,
pow: pow
Expand Down

0 comments on commit ea32f18

Please sign in to comment.