diff options
Diffstat (limited to 'include/ruby/ractor.h')
-rw-r--r-- | include/ruby/ractor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/ruby/ractor.h b/include/ruby/ractor.h index 47eac038c9..7811616f6d 100644 --- a/include/ruby/ractor.h +++ b/include/ruby/ractor.h @@ -145,7 +145,7 @@ bool rb_ractor_local_storage_value_lookup(rb_ractor_local_key_t key, VALUE *val) * Associates the passed value to the passed key. * * @param[in] key A ractor-local storage key. - * @param[in] val Arbitary ruby object. + * @param[in] val Arbitrary ruby object. * @post `val` corresponds to `key` in the current Ractor. */ void rb_ractor_local_storage_value_set(rb_ractor_local_key_t key, VALUE val); @@ -241,8 +241,9 @@ RBIMPL_SYMBOL_EXPORT_END() * extremely carefully implemented to be Ractor-safe; for instance integers * have such property. This function can classify that. * - * @param[in] obj Arbitrary ruby object. - * @ + * @param[in] obj Arbitrary ruby object. + * @retval true `obj` is capable of shared across ractors. + * @retval false `obj` cannot travel across ractor boundaries. */ static inline bool rb_ractor_shareable_p(VALUE obj) |