]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: replace txn:close with txn:done in lua-api
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Aug 2015 12:57:04 +0000 (14:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 27 Aug 2015 12:57:30 +0000 (14:57 +0200)
It was missed in the last patch.

doc/lua-api/index.rst

index 595239872ce494791b45a5bae7494aa78ab81d15..f8cfee26bcb4adf4a28c6c90bfb1109d8f603ca5 100644 (file)
@@ -88,7 +88,7 @@ HAProxy Lua file (`hello_world.lua`):
 
     function hello_world(txn)
        txn.res:send("hello world\n")
-       txn:close()
+       txn:done()
     end
 
 How to start HAProxy for testing this configuration: