Skip to content

Commit

Permalink
posix/stdio.c: fix usage example for fdopen
Browse files Browse the repository at this point in the history
Thanks, Philipp Janda.
  • Loading branch information
rrthomas committed Mar 3, 2015
1 parent a62ff5c commit 1cb93ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/posix/stdio.c
Expand Up @@ -85,7 +85,7 @@ Create a Lua file object from a file descriptor.
@treturn[2] string error message
@treturn[2] int errnum
@usage
stdout = P.fdopen (posix.STDOUT_FILENO)
stdout = P.fdopen (posix.STDOUT_FILENO, "w")
*/
static int
Pfdopen(lua_State *L) /** fdopen(fd, mode) */
Expand Down

0 comments on commit 1cb93ff

Please sign in to comment.