From ffa9298076c4bfd1443b1231e1d7e7965ede5db9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 4 Nov 2019 16:38:36 +0900 Subject: [PATCH] Fixed a typo --- lib/rexml/text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 5eba6e03c9..050b09c97e 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -109,7 +109,7 @@ module REXML @string = arg.instance_variable_get(:@string).dup @raw = arg.raw @entity_filter = arg.instance_variable_get(:@entity_filter) - elsif + else raise "Illegal argument of type #{arg.type} for Text constructor (#{arg})" end