diff options
Diffstat (limited to 'stdlib/source/documentation/lux/ffi.lua.lux')
-rw-r--r-- | stdlib/source/documentation/lux/ffi.lua.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/documentation/lux/ffi.lua.lux b/stdlib/source/documentation/lux/ffi.lua.lux index b4713841f..9f11805e8 100644 --- a/stdlib/source/documentation/lux/ffi.lua.lux +++ b/stdlib/source/documentation/lux/ffi.lua.lux @@ -24,12 +24,12 @@ ($.definition /.import "Easily import types, methods, functions and constants." - [(import (os/getenv [..String] "io" "?" ..String))]) + ($.example (import (os/getenv [..String] "io" "?" ..String)))) ($.definition /.function (format "Allows defining closures/anonymous-functions in the form that Lua expects." \n "This is useful for adapting Lux functions for usage by Lua code.") - [(is ..Function - (function [left right] - (do_something (as Foo left) (as Bar right))))]) + ($.example (is ..Function + (function [left right] + (do_something (as Foo left) (as Bar right)))))) )) |