doc: Fix README example

This commit is contained in:
Remko Tronçon 2022-10-01 20:49:46 +02:00
parent 509708c9bb
commit f9fccd6496

View file

@ -78,7 +78,7 @@ import WAForth from "waforth";
// Initialize WAForth
const forth = new WAForth();
forth.onEmit = (c) =>
log.appendChild(document.createTextNode(String.fromCharCode(c)));
log.appendChild(document.createTextNode(c));
await forth.load();
// Bind "prompt" call to a function that pops up a JavaScript