From 4dadcbcb49cd12012b1a02d307975f604b4e43d4 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Mon, 7 Feb 2022 22:38:10 +0100 Subject: [PATCH] fix typo --- repl/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl/src/App.tsx b/repl/src/App.tsx index 5e1c216c..faad502a 100644 --- a/repl/src/App.tsx +++ b/repl/src/App.tsx @@ -69,7 +69,7 @@ function App() { _pattern = parse(code); if (_pattern?.constructor?.name !== 'Pattern') { const message = `got "${typeof _pattern}" instead of pattern`; - throw new Error(message + (typeof _pattern === 'function' ? 'did you foget to call a function?' : '')); + throw new Error(message + (typeof _pattern === 'function' ? ', did you forget to call a function?' : '.')); } } setPattern(() => _pattern); // need arrow function here! otherwise if user returns a function, react will think it's a state reducer