Files
lua-cffi-lua/0001-Corrects-1st-example-in-introduction.md.patch
Matěj Cepl 9dc3ea8e8d Add two patches fixing typos in documentation:
- 0001-Corrects-1st-example-in-introduction.md.patch
  - 0002-docs-fixed-the-second-example-in-introduction.md.patch
2025-08-27 01:48:46 +02:00

26 lines
715 B
Diff

From c5e92e107aff93693d0b472c4c10402ba23a4652 Mon Sep 17 00:00:00 2001
From: Richard Thanki <richardthanki@gmail.com>
Date: Thu, 2 Mar 2023 04:52:01 +0000
Subject: [PATCH 1/2] Corrects 1st example in introduction.md
---
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.
--
2.51.0