Skip to content

Commit

Permalink
chore: use let instead of const to fix type error (i18next#225)
Browse files Browse the repository at this point in the history
`content` variable is going to be re-assigned, so if we use `const`, we're going to get the following error:

"Uncaught TypeError: Assignment to constant variable."
  • Loading branch information
sitek94 authored Mar 26, 2022
1 parent 58edbd1 commit ceb4c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 183,7 @@ const customHandler = function(key) {
};

const parser = new Parser();
const content = '';
let content = '';

// Parse Translation Function
// i18next.t('key');
Expand Down

0 comments on commit ceb4c2c

Please sign in to comment.