ruby-changes:49771
From: hsbt <ko1@a...>
Date: Wed, 17 Jan 2018 22:15:19 +0900 (JST)
Subject: [ruby-changes:49771] hsbt:r61889 (trunk): Fix typos.
hsbt 2018-01-17 22:15:13 +0900 (Wed, 17 Jan 2018) New Revision: 61889 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61889 Log: Fix typos. * node.c: strucutre -> structure * random.c: acquried -> acquired * thread.c: accross -> across Modified files: trunk/node.c trunk/random.c trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 61888) +++ thread.c (revision 61889) @@ -2110,7 +2110,7 @@ rb_threadptr_execute_interrupts(rb_threa https://github.com/ruby/ruby/blob/trunk/thread.c#L2110 } 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. */ Index: random.c =================================================================== --- random.c (revision 61888) +++ random.c (revision 61889) @@ -496,12 +496,12 @@ fill_random_bytes_syscall(void *seed, si https://github.com/ruby/ruby/blob/trunk/random.c#L496 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); } Index: node.c =================================================================== --- node.c (revision 61888) +++ node.c (revision 61889) @@ -1020,7 +1020,7 @@ rb_parser_dump_tree(const NODE *node, in https://github.com/ruby/ruby/blob/trunk/node.c#L1020 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/