From 664dbd982bc99c61b6c62b37695bfeca6f73159f Mon Sep 17 00:00:00 2001 From: Wick Date: Mon, 28 Oct 2024 19:12:03 +0800 Subject: [PATCH] Update introduction.md Copy/Paste code cannot run well. :-) --- docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introduction.md b/docs/introduction.md index 4454254..615e050 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -24,7 +24,7 @@ local cffi = require("cffi") cffi.cdef [[ int printf(char const *fmt, ...); ]] -ffi.C.printf("hello %s\n", "world") +cffi.C.printf("hello %s\n", "world") ``` Note how this is pretty much identical to the example on the LuaJIT website.