aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/net.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/net.md b/docs/net.md
index e5c4070..2c8ca45 100644
--- a/docs/net.md
+++ b/docs/net.md
@@ -118,13 +118,13 @@ res.header["test"] = "wowa"
...
```
-### res:serve **
+### res:sendfile
-'takes one string, which is a path that will be served, file or dir
+'takes one string, which is a path that will be served, must be a file
```lua
...
-res:serve("./html/")
+res:sendfile("./html/index.html")
...
```