Permalink
Browse files

fixed a bug in example

  • Loading branch information...
1 parent 5c8bee7 commit cf855128a60d205e535bded2ea7cea48cff53a3b Heng Li committed Apr 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lua/klib.lua
View
2 lua/klib.lua
@@ -59,7 +59,7 @@
-- Description: getopt() translated from the BSD getopt(); compatible with the default Unix getopt()
--[[ Example:
- for opt, optarg = os.getopt(arg, 'a:b') do
+ for opt, optarg in os.getopt(arg, 'a:b') do
if opt == 'a' then print(opt .. '=' .. optarg)
elseif opt == 'b' then print(opt) end -- optarg is nil
end

0 comments on commit cf85512

Please sign in to comment.