Skip to content

Commit

Permalink
修正注释说明中的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit authored Apr 23, 2021
1 parent fdd2a37 commit 5a26fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ usage:
local client = require("websocket").new("127.0.0.1", 5000)
function client:onmessage(s) print(s) end
function client:onopen() self:send("hello from love2d") end
function client:onclose = function() print("closed") end
function client:onclose() print("closed") end
function love.update()
client:update()
Expand Down

0 comments on commit 5a26fb1

Please sign in to comment.