diff options
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 391bec1722..c0f52c23cc 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -429,7 +429,14 @@ do_checksum(argc, argv, func) * +adler+. If +string+ is omitted, it returns the Adler-32 initial value. If * +adler+ is omitted, it assumes that the initial value is given to +adler+. * - * FIXME: expression. + * Example usage: + * + * require "zlib" + * + * data = "foo" + * puts "Adler32 checksum: #{Zlib.adler32(data).to_s(16)}" + * #=> Adler32 checksum: 2820145 + * */ static VALUE rb_zlib_adler32(int argc, VALUE *argv, VALUE klass) |