diff options
| author | Augustin Gottlieb <33221555+aguspe@users.noreply.github.com> | 2025-12-18 01:34:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-18 09:34:32 +0900 |
| commit | cfa3e7cf75531a8c90b39bbd9b977f30315b12e7 (patch) | |
| tree | da7a49076a917828a1ac31908ab6724b55e4a156 | |
| parent | 656de67d5c8cd894eeda0baa618663098dce17f2 (diff) | |
[DOC] Fix double-word typos in commentsv4.0.0-preview3
Found via `grep` for repeated words.
* set.c: Fix "or or"
* include/ruby/internal/symbol.h: Fix "is is"
* include/ruby/internal/ctype.h: Fix "in in"
| -rw-r--r-- | include/ruby/internal/ctype.h | 2 | ||||
| -rw-r--r-- | include/ruby/internal/symbol.h | 2 | ||||
| -rw-r--r-- | set.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/internal/ctype.h b/include/ruby/internal/ctype.h index 0f7ca6c516..93e92801fc 100644 --- a/include/ruby/internal/ctype.h +++ b/include/ruby/internal/ctype.h @@ -498,7 +498,7 @@ RBIMPL_ATTR_ARTIFICIAL() * Our own locale-insensitive version of `tolower(3)`. * * @param[in] c Byte in question to convert. - * @retval c The byte is not listed in in IEEE 1003.1 section + * @retval c The byte is not listed in IEEE 1003.1 section * 7.3.1.1 "upper". * @retval otherwise Byte converted using the map defined in IEEE 1003.1 * section 7.3.1 "tolower". diff --git a/include/ruby/internal/symbol.h b/include/ruby/internal/symbol.h index 569bf215a2..858c5e290f 100644 --- a/include/ruby/internal/symbol.h +++ b/include/ruby/internal/symbol.h @@ -187,7 +187,7 @@ ID rb_check_id(volatile VALUE *namep); * * :FIXME: Can anyone tell us what is the difference between this one and * rb_intern_str()? As far as @shyouhei reads the implementation it seems what - * rb_to_id() does is is just waste some CPU time, then call rb_intern_str(). + * rb_to_id() does is just waste some CPU time, then call rb_intern_str(). * He hopes he is wrong. */ ID rb_to_id(VALUE str); @@ -1766,7 +1766,7 @@ set_i_disjoint(VALUE set, VALUE other) * set <=> other -> -1, 0, 1, or nil * * Returns 0 if the set are equal, -1 / 1 if the set is a - * proper subset / superset of the given set, or or nil if + * proper subset / superset of the given set, or nil if * they both have unique elements. */ static VALUE |
