diff options
Diffstat (limited to 'etc/dict.lua')
-rw-r--r-- | etc/dict.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/dict.lua b/etc/dict.lua index e5d4740..dd001cf 100644 --- a/etc/dict.lua +++ b/etc/dict.lua | |||
@@ -4,7 +4,7 @@ | |||
4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
5 | -- RCS ID: $Id$ | 5 | -- RCS ID: $Id$ |
6 | ----------------------------------------------------------------------------- | 6 | ----------------------------------------------------------------------------- |
7 | require"socket" | 7 | local socket = require("socket") |
8 | 8 | ||
9 | function get_status(sock, valid) | 9 | function get_status(sock, valid) |
10 | local line, err = sock:receive() | 10 | local line, err = sock:receive() |
@@ -77,5 +77,5 @@ if arg and arg[1] then | |||
77 | defs, err = dict_get(arg[1], arg[2]) | 77 | defs, err = dict_get(arg[1], arg[2]) |
78 | print(defs or err) | 78 | print(defs or err) |
79 | else | 79 | else |
80 | io.write("Usage:\n luasocket dict.lua <word> [<dictionary>]\n") | 80 | io.write("Usage:\n lua dict.lua <word> [<dictionary>]\n") |
81 | end | 81 | end |