Skip to content

Commit bbff886

Browse files
hsbtclaude
andcommitted
Fix the rdoc of Zlib::Inflate#sync
It described the return values the other way around, and did not mention Zlib::InProgressError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f7822c9 commit bbff886

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎ext/zlib/zlib.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,8 +2345,11 @@ rb_inflate_addstr(VALUE obj, VALUE src)
23452345
*
23462346
* Inputs +string+ into the end of input buffer and skips data until a full
23472347
* flush point can be found. If the point is found in the buffer, this method
2348-
* flushes the buffer and returns false. Otherwise it returns +true+ and the
2349-
* following data of full flush point is preserved in the buffer.
2348+
* returns +true+ and the following data of full flush point is preserved in
2349+
* the buffer. Otherwise it flushes the buffer and returns +false+.
2350+
*
2351+
* Raises a Zlib::InProgressError exception if called while the stream is
2352+
* being inflated.
23502353
*/
23512354
static VALUE
23522355
rb_inflate_sync(VALUE obj, VALUE src)

0 commit comments

Comments
 (0)