From 1cfcf7de5a123e79b510175093babbd4821ed6ee Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Tue, 7 Feb 2023 00:46:07 +1100 Subject: [PATCH] Update using-toy.md --- using-toy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/using-toy.md b/using-toy.md index d1ebd26..decc851 100644 --- a/using-toy.md +++ b/using-toy.md @@ -47,7 +47,7 @@ Toy_freeInterpreter(&interpreter); In addition to this, you might also wish to "inject" a series of usable libraries into the interpreter, which can be `import`-ed within the language itself. This process only needs to be done once, after initialization, but before the first run. ```c -Toy_injectNativeHook(&interpreter, "standard", hookStandard); +Toy_injectNativeHook(&interpreter, "standard", Toy_hookStandard); ``` A "hook" is a callback function which is invoked when the given library is imported. `standard` is the most commonly used library available.