From abf28f7b03de283fce85aef4c661d1931afb5437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Fri, 14 Mar 2014 01:28:06 -0700 Subject: [PATCH] Updated APIs (markdown) --- APIs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APIs.md b/APIs.md index 194ec17..4efef91 100644 --- a/APIs.md +++ b/APIs.md @@ -6,7 +6,7 @@ First and foremost you should get familiar with the [Lua reference manual][lua-m OpenComputers makes an effort to largely emulate the standard library in areas that would usually interact with the host system - that being the I/O library. There are a few differences, which you can look up here: [[differences in the standard libraries|NonstandardLuaLibs]]. Most notably, the debug and package libraries are not available, and `load` only accepts text source files, no binary / pre-compiled Lua programs (for security reasons). Note that you now need to require all APIs(including the ones below) before you use them. -For example, instead of simple going "local rs = component.redstone", you now need to require the component API, like so: +For example, instead of simple going `local rs = component.redstone`, you now need to require the component API, like so: ```lua local component = require("component") @@ -16,7 +16,7 @@ local rs = component.redstone local mycomp = require("component") local rs = mycomp.redstone ``` -The same applies for all other APIs listed below(even Sides and Colors). +The same applies for all other APIs listed below (even Sides and Colors). Custom Libraries ----------------