rice/protect.hpp in rice-1.2.0 vs rice/protect.hpp in rice-1.3.0
- old
+ new
@@ -19,10 +19,10 @@
//! Call the C function f with arguments (arg1, arg2, ...).
/*! E.g.:
* \code
* VALUE x = protect(rb_ary_new);
- * protect(rb_ary_push(x, INT2NUM(42));
+ * protect(rb_ary_push, x, INT2NUM(42));
* \endcode
*
* Note that this function makes copies of all of its arguments; it
* does not take anything by reference. All of the copies are const so
* that protect will not work if f takes a non-const