Removed non-ASCII code to suppress warnings by localized compilers

This commit is contained in:
Nobuyoshi Nakada 2020-08-10 19:45:17 +09:00
parent 17d869c7d6
commit 0ca6b973e8
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
2 changed files with 6 additions and 6 deletions

View File

@ -5809,7 +5809,7 @@ recursive_cmp(VALUE ary1, VALUE ary2, int recur)
/* /*
* call-seq: * call-seq:
* array <=> other_array -1, 0, or 1 * array <=> other_array -> -1, 0, or 1
* *
* Returns -1, 0, or 1 as +self+ is less than, equal to, or greater than +other_array+. * Returns -1, 0, or 1 as +self+ is less than, equal to, or greater than +other_array+.
* For each index +i+ in +self+, evaluates <tt>result = self[i] <=> other_array[i]</tt>. * For each index +i+ in +self+, evaluates <tt>result = self[i] <=> other_array[i]</tt>.
@ -6558,7 +6558,7 @@ ary_min_opt_string(VALUE ary, long i, VALUE vmin)
* array.min -> element * array.min -> element
* array.min { |a, b| ... } -> element * array.min { |a, b| ... } -> element
* array.min(n) -> new_array * array.min(n) -> new_array
* ary.min(n) { |a, b| ... } new_array * ary.min(n) { |a, b| ... } -> new_array
* *
* Returns one of the following: * Returns one of the following:
* - The minimum-valued element from +self+. * - The minimum-valued element from +self+.

View File

@ -1585,8 +1585,8 @@ rb_str_resurrect(VALUE str)
* *
* With the single argument +str+, returns a copy of +str+ * With the single argument +str+, returns a copy of +str+
* with the same encoding as +str+: * with the same encoding as +str+:
* s = String.new('Que veut dire ça?') * s = String.new("Que veut dire \u{e7}a?")
* s # => "Que veut dire ça?" * s # => "Que veut dire \u{e7}a?"
* s.encoding # => #<Encoding:UTF-8> * s.encoding # => #<Encoding:UTF-8>
* *
* Literal strings like <tt>""</tt> or here-documents always use * Literal strings like <tt>""</tt> or here-documents always use
@ -1634,8 +1634,8 @@ rb_str_resurrect(VALUE str)
* String.new(encoding: 'FOO') * String.new(encoding: 'FOO')
* *
* Raises an exception if the given +encoding+ is incompatible with +str+: * Raises an exception if the given +encoding+ is incompatible with +str+:
* utf8 = 'Que veut dire ça?' * utf8 = "Que veut dire \u{e7}a?"
* ascii = 'Que veut dire ça?'.force_encoding('ASCII') * ascii = "Que veut dire \u{e7}a?".force_encoding('ASCII')
* # Raises Encoding::CompatibilityError (incompatible character encodings: UTF-8 and US-ASCII) * # Raises Encoding::CompatibilityError (incompatible character encodings: UTF-8 and US-ASCII)
* utf8.include? ascii * utf8.include? ascii
* *