summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorkojix2 <[email protected]>2024-10-31 12:44:50 +0900
committerGitHub <[email protected]>2024-10-31 12:44:50 +0900
commit550ac2f2edc07d1b63e3755233df0758a652b53f (patch)
tree500c2e14f9827a78b81d5187d88e2084f907227f /regexec.c
parent583587dfbf524b96593f5469d68c844c7297ba98 (diff)
[DOC] Fix typos
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11967 Merged-By: nobu <[email protected]>
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 8c6bccf546..1039bd2ba1 100644
--- a/regexec.c
+++ b/regexec.c
@@ -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.