mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Fix typos
This commit is contained in:
parent
583587dfbf
commit
550ac2f2ed
Notes:
git
2024-10-31 03:45:10 +00:00
Merged: https://github.com/ruby/ruby/pull/11967 Merged-By: nobu <nobu@ruby-lang.org>
4 changed files with 8 additions and 8 deletions
|
@ -244,7 +244,7 @@ ossl_bn_alloc(VALUE klass)
|
|||
* number.
|
||||
* - +10+ - Decimal number representation, with a leading '-' for a negative
|
||||
* number.
|
||||
* - +16+ - Hexadeciaml number representation, with a leading '-' for a
|
||||
* - +16+ - Hexadecimal number representation, with a leading '-' for a
|
||||
* negative number.
|
||||
*/
|
||||
static VALUE
|
||||
|
@ -326,7 +326,7 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self)
|
|||
* the bignum is ignored.
|
||||
* - +10+ - Decimal number representation, with a leading '-' for a negative
|
||||
* bignum.
|
||||
* - +16+ - Hexadeciaml number representation, with a leading '-' for a
|
||||
* - +16+ - Hexadecimal number representation, with a leading '-' for a
|
||||
* negative bignum.
|
||||
*/
|
||||
static VALUE
|
||||
|
|
|
@ -94,7 +94,7 @@ static void getDevice(int*, int*, char [DEVICELEN], int);
|
|||
|
||||
static int start_new_session(char *errbuf, size_t errbuf_len);
|
||||
static int obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t errbuf_len);
|
||||
static int drop_privilige(char *errbuf, size_t errbuf_len);
|
||||
static int drop_privilege(char *errbuf, size_t errbuf_len);
|
||||
|
||||
struct child_info {
|
||||
int master, slave;
|
||||
|
@ -117,7 +117,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
|
|||
if (obtain_ctty(master, slave, slavename, errbuf, errbuf_len))
|
||||
return -1;
|
||||
|
||||
if (drop_privilige(errbuf, errbuf_len))
|
||||
if (drop_privilege(errbuf, errbuf_len))
|
||||
return -1;
|
||||
|
||||
return rb_exec_async_signal_safe(carg->eargp, errbuf, errbuf_len);
|
||||
|
@ -185,7 +185,7 @@ obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t e
|
|||
}
|
||||
|
||||
static int
|
||||
drop_privilige(char *errbuf, size_t errbuf_len)
|
||||
drop_privilege(char *errbuf, size_t errbuf_len)
|
||||
{
|
||||
#if defined(HAVE_SETEUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRESUID)
|
||||
if (seteuid(getuid())) ERROR_EXIT("seteuid()");
|
||||
|
|
|
@ -4546,7 +4546,7 @@ rb_gc_impl_mark_weak(void *objspace_ptr, VALUE *ptr)
|
|||
|
||||
/* If we are in a minor GC and the other object is old, then obj should
|
||||
* already be marked and cannot be reclaimed in this GC cycle so we don't
|
||||
* need to add it to the weak refences list. */
|
||||
* need to add it to the weak references list. */
|
||||
if (!is_full_marking(objspace) && RVALUE_OLD_P(objspace, obj)) {
|
||||
GC_ASSERT(RVALUE_MARKED(objspace, obj));
|
||||
GC_ASSERT(!objspace->flags.during_compacting);
|
||||
|
|
|
@ -240,11 +240,11 @@ Glossary for "match cache"
|
|||
The `Regexp#match` optimization by using a cache.
|
||||
|
||||
"cache opcode"
|
||||
A cachable opcode (e.g. `OP_PUSH`, `OP_REPEAT`, etc).
|
||||
A cacheable opcode (e.g. `OP_PUSH`, `OP_REPEAT`, etc).
|
||||
It is corresponding to some cache points.
|
||||
|
||||
"cache point"
|
||||
A cachable point on matching.
|
||||
A cacheable point on matching.
|
||||
Usually, one-to-one corresponding between a cache opcode and a cache point exists,
|
||||
but cache opcodes between `OP_REPEAT` and `OP_REPEAT_INC` have some corresponding
|
||||
cache points depending on repetition counts.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue