diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-13 14:08:20 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-13 14:08:20 +0000 |
commit | e712ad9cd79dcedf3eea4b888faeeae8462c0a2b (patch) | |
tree | 7186b7e0d52ad2cc3d09e6493f46a73103f94473 /re.c | |
parent | 692e00f3fd30be72a24d7ef9abb19d1d0e84fd6b (diff) | |
download | ruby-e712ad9cd79dcedf3eea4b888faeeae8462c0a2b.tar.gz |
[DOC] Fix exception class [ci skip]
ref https://github.com/rurema/doctree/pull/816
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1325,14 +1325,14 @@ rb_backref_set_string(VALUE string, long pos, long len) * r.fixed_encoding? #=> true * r.encoding #=> #<Encoding:UTF-8> * r =~ "\u{6666} a" #=> 2 - * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> ArgumentError + * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> Encoding::CompatibilityError * r =~ "abc".force_encoding("euc-jp") #=> 0 * * r = /\u{6666}/ * r.fixed_encoding? #=> true * r.encoding #=> #<Encoding:UTF-8> * r =~ "\u{6666} a" #=> 0 - * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> ArgumentError + * r =~ "\xa1\xa2".force_encoding("euc-jp") #=> Encoding::CompatibilityError * r =~ "abc".force_encoding("euc-jp") #=> nil */ |