Skip to content

Commit

Permalink
docs(README): fix typo in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 committed Jan 26, 2024
1 parent ed3d49b commit 606f36d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ of the latest async function call.
nio.run(function ()
local path = Path("./does/not/exist.txt")
local fd = path:fs_open("r")
assert(not fd, "fs_open failed. ERROR: " .. path.error_msg)
assert(fd, "ERROR: " .. path.error_msg)
-- fd will be nil when `:fs_open` fails. Check `self.error_msg` for the error message.
end)
```
Expand Down
4 changes: 2 additions & 2 deletions README.norg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description:
authors: takuto
categories:
created: 2023-11-14
updated: 2024-01-26T15:20:59+0900
updated: 2024-01-26T19:32:04+0900
version: 1.1.1
@end

Expand Down Expand Up @@ -118,7 +118,7 @@ version: 1.1.1
nio.run(function ()
local path = Path("./does/not/exist.txt")
local fd = path:fs_open("r")
assert(not fd, "fs_open failed. ERROR: " .. path.error_msg)
assert(fd, "ERROR: " .. path.error_msg)
-- fd will be nil when `:fs_open` fails. Check `self.error_msg` for the error message.
end)
@end
Expand Down

0 comments on commit 606f36d

Please sign in to comment.