summaryrefslogtreecommitdiff
path: root/include/ruby/thread.h
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2023-12-21 20:34:49 -0500
committerAlan Wu <[email protected]>2023-12-21 20:34:49 -0500
commit0c05551f5812f29c24a30cfbcaa60beab22569d0 (patch)
tree75eccd5cc468df9585cbfff44c36144d11c05f72 /include/ruby/thread.h
parent009968a700209336eb592ccb83bddcf7b2c17984 (diff)
Typo fixes for public headers [ci skip]
Diffstat (limited to 'include/ruby/thread.h')
-rw-r--r--include/ruby/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/thread.h b/include/ruby/thread.h
index 496f026334..f01d276a29 100644
--- a/include/ruby/thread.h
+++ b/include/ruby/thread.h
@@ -205,7 +205,7 @@ void *rb_nogvl(void *(*func)(void *), void *data1,
#define RUBY_INTERNAL_THREAD_EVENT_READY 1 << 1 /** acquiring GVL */
/**
- * Triggered when a thread successfuly acquired the GVL.
+ * Triggered when a thread successfully acquired the GVL.
*
* @note The callback will be called *with* the GVL held.
*/
@@ -260,7 +260,7 @@ rb_internal_thread_event_hook_t *rb_internal_thread_add_event_hook(
* Unregister the passed hook.
*
* @param[in] hook. The hook to unregister.
- * @return Wether the hook was found and unregistered.
+ * @return Whether the hook was found and unregistered.
* @note This functionality is a noop on Windows and WebAssembly.
* @warning This function MUST not be called from a thread event callback.
*/
@@ -287,7 +287,7 @@ typedef int rb_internal_thread_specific_key_t;
* }
*
* // at any timing:
- * rb_internal_thread_pecific_set(thread, tool_key, per_thread_data);
+ * rb_internal_thread_specific_set(thread, tool_key, per_thread_data);
* ...
* per_thread_data = rb_internal_thread_specific_get(thread, tool_key);
*/