doc: Documentation tweaks & fixes

This commit is contained in:
Remko Tronçon 2022-10-01 19:37:49 +02:00
parent e0cae790dc
commit 86069773e1
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ WAForth is a small but complete bootstrapping Forth interpreter and dynamic comp
WAForth is [entirely written in (raw)
WebAssembly](https://github.com/remko/waforth/blob/master/src/waforth.wat), and
the compiler generates WebAssembly code on the fly. The only parts for which it
relies on external (JavaScript) code is to dynamically load modules (since
relies on external code is to dynamically load modules (since
WebAssembly [doesn't support JIT
yet](https://webassembly.org/docs/future-features/#platform-independent-just-in-time-jit-compilation)),
and the I/O primitives to read and write a character to a screen.

View file

@ -59,7 +59,7 @@ class WAForth {
/**
* Callback that is called when a character needs to be emitted.
*
* `c` is the ASCII code of the character to be emitted.
* `c` is the single-character string that is emitted
*/
onEmit?: (c: string) => void;
key: () => number;