Permalink
Browse files

api.markdown: remove instance of :end()

the document incorrectly mentions :end(). We can't use end() because it
is reserved in lua.
  • Loading branch information...
1 parent feb7637 commit b691a16e6cca0552836bb6afecf56fc954679f9b Brandon Philips committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 api.markdown
View
@@ -158,7 +158,7 @@ Half-closes the socket. i.e., it sends a FIN packet. It is possible the
server will still send some data.
If `data` is specified, it is equivalent to calling
-`socket:write(data)` followed by `socket.end()`.
+`socket:write(data)` followed by `socket:finish()`.
#### Socket:initialize(options)

0 comments on commit b691a16

Please sign in to comment.