Skip to content

Commit

Permalink
[DOC] Mention rb_io_fdopen() takes ownership of the FD
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Aug 28, 2024
1 parent c3ffa71 commit 3fa5b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ruby/internal/intern/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ VALUE rb_io_puts(int argc, const VALUE *argv, VALUE io);
* @param[in] fd Target file descriptor.
* @param[in] flags Flags, e.g. `O_CREAT|O_EXCL`
* @param[in] path The path of the file that backs `fd`, for diagnostics.
* @return An allocated instance of ::rb_cIO.
* @return An allocated instance of ::rb_cIO with the autoclose flag set.
* @note Leave `path` NULL if you don't know.
*/
VALUE rb_io_fdopen(int fd, int flags, const char *path);
Expand Down

0 comments on commit 3fa5b4b

Please sign in to comment.