aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r--lib/rexml/attribute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index 28a5923608..e99927943f 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -115,7 +115,7 @@ module REXML
def doctype
if @element
doc = @element.document
- doctype = doc.doctype if doc
+ doc.doctype if doc
end
end