summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node.c2
-rw-r--r--random.c4
-rw-r--r--thread.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/node.c b/node.c
index 263296e962..e17067157f 100644
--- a/node.c
+++ b/node.c
@@ -1020,7 +1020,7 @@ rb_parser_dump_tree(const NODE *node, int comment)
return buf;
}
-/* Setup NODE strucutre.
+/* Setup NODE structure.
* NODE is not an object managed by GC, but it imitates an object
* so that it can work with `RB_TYPE_P(obj, T_NODE)`.
* This dirty hack is needed because Ripper jumbles NODEs and other type
diff --git a/random.c b/random.c
index 4fbbebfc14..43a3d2ffee 100644
--- a/random.c
+++ b/random.c
@@ -496,12 +496,12 @@ fill_random_bytes_syscall(void *seed, size_t size, int unused)
prov = (HCRYPTPROV)INVALID_HANDLE_VALUE;
}
old_prov = (HCRYPTPROV)ATOMIC_PTR_CAS(perm_prov, 0, prov);
- if (LIKELY(!old_prov)) { /* no other threads acquried */
+ if (LIKELY(!old_prov)) { /* no other threads acquired */
if (prov != (HCRYPTPROV)INVALID_HANDLE_VALUE) {
rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &perm_prov));
}
}
- else { /* another thread acquried */
+ else { /* another thread acquired */
if (prov != (HCRYPTPROV)INVALID_HANDLE_VALUE) {
CryptReleaseContext(prov, 0);
}
diff --git a/thread.c b/thread.c
index b32817ad0d..d2e57b3dcb 100644
--- a/thread.c
+++ b/thread.c
@@ -2110,7 +2110,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
}
else {
if (err == th->vm->special_exceptions[ruby_error_stream_closed]) {
- /* the only special exception to be queued accross thread */
+ /* the only special exception to be queued across thread */
err = ruby_vm_special_exception_copy(err);
}
/* set runnable if th was slept. */