Skip to content

Commit f65fe9d

Browse files
authored
docs: Use assert on bind (on the TCP echo server example) (#813)
1 parent 49442b6 commit f65fe9d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/docs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ local doc = {
470470
local uv = require("luv") -- "luv" when stand-alone, "uv" in luvi apps
471471
472472
local server = uv.new_tcp()
473-
server:bind("127.0.0.1", 1337)
473+
assert(server:bind("127.0.0.1", 1337))
474474
server:listen(128, function (err)
475475
assert(not err, err)
476476
local client = uv.new_tcp()

docs/docs.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/meta.lua

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)