From f4c08d14995ba9d5caf0f209d3a95308f93bec6a Mon Sep 17 00:00:00 2001
From: Ryuta Kamizono <kamipo@gmail.com>
Date: Wed, 29 Nov 2017 17:18:39 +0900
Subject: Mention about Ruby 2.4 Unicode case mappings in `mb_chars` example
 [ci skip] (#31275)

https://www.ruby-lang.org/en/news/2016/09/08/ruby-2-4-0-preview2-released/
---
 activesupport/lib/active_support/core_ext/string/multibyte.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'activesupport')

diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb
index 075b206d04..07c0d16398 100644
--- a/activesupport/lib/active_support/core_ext/string/multibyte.rb
+++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb
@@ -12,10 +12,12 @@ class String
   # class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsulated string.
   #
   #   >> "lj".upcase
-  #   => "LJ"
+  #   => "lj"
   #   >> "lj".mb_chars.upcase.to_s
   #   => "LJ"
   #
+  # NOTE: An above example is useful for pre Ruby 2.4. Ruby 2.4 supports Unicode case mappings.
+  #
   # == Method chaining
   #
   # All the methods on the Chars proxy which normally return a string will return a Chars object. This allows
-- 
cgit v1.2.3