Update README.md

This commit is contained in:
Alexey Melnichuk 2014-08-27 13:58:34 +05:00
parent 2fa773fd84
commit f733d2f2b3
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@
## Documentation ## Documentation
[API](http://moteus.github.com/lcurl) [API](http://moteus.github.com/lcurl)
## Installation
```
luarocks install lcurl --server=https://rocks.moonscript.org/dev
```
## Usage ## Usage
```Lua ```Lua

View File

@ -98,7 +98,7 @@ void lcurl_util_slist_to_table(lua_State *L, struct curl_slist* list){
} }
void lcurl_util_set_const(lua_State *L, const lcurl_const_t *reg){ void lcurl_util_set_const(lua_State *L, const lcurl_const_t *reg){
lcurl_const_t *p; const lcurl_const_t *p;
for(p = reg; p->name; ++p){ for(p = reg; p->name; ++p){
lua_pushstring(L, p->name); lua_pushstring(L, p->name);
lua_pushnumber(L, p->value); lua_pushnumber(L, p->value);