aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/rexml/text.rb2
1 files changed, 1 insertions, 1 deletions
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