Skip to content

Commit 5a26fb1

Browse files
authored
修正注释说明中的错误
1 parent fdd2a37 commit 5a26fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ usage:
66
local client = require("websocket").new("127.0.0.1", 5000)
77
function client:onmessage(s) print(s) end
88
function client:onopen() self:send("hello from love2d") end
9-
function client:onclose = function() print("closed") end
9+
function client:onclose() print("closed") end
1010
1111
function love.update()
1212
client:update()

0 commit comments

Comments
 (0)