Skip to content

Commit cfa3e7c

Browse files
authored
[DOC] Fix double-word typos in comments
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"
1 parent 656de67 commit cfa3e7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/ruby/internal/ctype.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ RBIMPL_ATTR_ARTIFICIAL()
498498
* Our own locale-insensitive version of `tolower(3)`.
499499
*
500500
* @param[in] c Byte in question to convert.
501-
* @retval c The byte is not listed in in IEEE 1003.1 section
501+
* @retval c The byte is not listed in IEEE 1003.1 section
502502
* 7.3.1.1 "upper".
503503
* @retval otherwise Byte converted using the map defined in IEEE 1003.1
504504
* section 7.3.1 "tolower".

include/ruby/internal/symbol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ ID rb_check_id(volatile VALUE *namep);
187187
*
188188
* :FIXME: Can anyone tell us what is the difference between this one and
189189
* rb_intern_str()? As far as @shyouhei reads the implementation it seems what
190-
* rb_to_id() does is is just waste some CPU time, then call rb_intern_str().
190+
* rb_to_id() does is just waste some CPU time, then call rb_intern_str().
191191
* He hopes he is wrong.
192192
*/
193193
ID rb_to_id(VALUE str);

set.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ set_i_disjoint(VALUE set, VALUE other)
17661766
* set <=> other -> -1, 0, 1, or nil
17671767
*
17681768
* Returns 0 if the set are equal, -1 / 1 if the set is a
1769-
* proper subset / superset of the given set, or or nil if
1769+
* proper subset / superset of the given set, or nil if
17701770
* they both have unique elements.
17711771
*/
17721772
static VALUE

0 commit comments

Comments
 (0)