diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ext_ffi_tutorial.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/ext_ffi_tutorial.html b/doc/ext_ffi_tutorial.html index 01fb8992..8e4eaf72 100644 --- a/doc/ext_ffi_tutorial.html +++ b/doc/ext_ffi_tutorial.html | |||
@@ -564,7 +564,7 @@ Thus it's not helpful and actually counter-productive to cache | |||
564 | individual C functions like this: | 564 | individual C functions like this: |
565 | </p> | 565 | </p> |
566 | <pre class="code"> | 566 | <pre class="code"> |
567 | local <b>funca</b>, <b>funcb</b> = ffi.C.funcb, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span> | 567 | local <b>funca</b>, <b>funcb</b> = ffi.C.funca, ffi.C.funcb -- <span style="color:#c00000;">Not helpful!</span> |
568 | local function foo(x, n) | 568 | local function foo(x, n) |
569 | for i=1,n do <b>funcb</b>(<b>funca</b>(x, i), 1) end | 569 | for i=1,n do <b>funcb</b>(<b>funca</b>(x, i), 1) end |
570 | end | 570 | end |