Skip to content

Commit

Permalink
Fix rdoc of IO::Buffer [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed May 9, 2022
1 parent ef525b0 commit dc9a13a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions io_buffer.c
Expand Up @@ -2138,20 +2138,7 @@ io_buffer_pwrite(VALUE self, VALUE io, VALUE length, VALUE offset)
* C mechanisms like `memcpy`.
*
* The class is meant to be an utility for implementing more high-level mechanisms
* like Fiber::SchedulerInterface#io_read and Fiber::Sc io_buffer_unmap(data->base, data->size);
}
if (RB_TYPE_P(data->source, T_STRING)) {
rb_str_unlocktmp(data->source);
}
// Previously we had this, but we found out due to the way GC works, we
// can't refer to any other Ruby objects here.
// if (RB_TYPE_P(data->source, T_STRING)) {
// rb_str_unlocktmp(data->source);
// }
data->base = NULL;
hedulerInterface#io_write.
* like Fiber::SchedulerInterface#io_read and Fiber::SchedulerInterface#io_write.
*
* <b>Examples of usage:</b>
*
Expand Down

1 comment on commit dc9a13a

@ioquatix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, thanks.

Please sign in to comment.