aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/document.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/document.rb')
-rw-r--r--lib/rexml/document.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb
index 1e18263dda..8342b96e6a 100644
--- a/lib/rexml/document.rb
+++ b/lib/rexml/document.rb
@@ -123,7 +123,7 @@ module REXML
def xml_decl
rv = @children[0]
return rv if rv.kind_of? XMLDecl
- rv = @children.unshift(XMLDecl.default)[0]
+ @children.unshift(XMLDecl.default)[0]
end
# @return the XMLDecl version of this document as a String.