[DOC] Fix typo: occurences -> occurrences

This commit is contained in:
Bodhi Russell Silberling 2026-01-23 19:41:36 -08:00 committed by GitHub
parent 3328246b91
commit 3dd928c284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2026-01-24 03:42:04 +00:00
Merged: https://github.com/ruby/ruby/pull/15951

Merged-By: nobu <nobu@ruby-lang.org>

View File

@ -38,7 +38,7 @@ rb_str_encindex_fastpath(int encindex)
// Hence you can use fast, single byte algorithms on them, such as `memchr` etc,
// without all the overhead of fetching the rb_encoding and using functions such as
// rb_enc_mbminlen etc.
// Many other encodings could qualify, but they are expected to be rare occurences,
// Many other encodings could qualify, but they are expected to be rare occurrences,
// so it's better to keep that list small.
switch (encindex) {
case ENCINDEX_ASCII_8BIT: