aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/comment.rb')
-rw-r--r--lib/rdoc/comment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/comment.rb b/lib/rdoc/comment.rb
index 25e7c966c8..2b5be44ee5 100644
--- a/lib/rdoc/comment.rb
+++ b/lib/rdoc/comment.rb
@@ -148,7 +148,7 @@ class RDoc::Comment
end
def inspect # :nodoc:
- location = @location ? @location.absolute_name : '(unknown)'
+ location = @location ? @location.relative_name : '(unknown)'
"#<%s:%x %s %p>" % [self.class, object_id, location, @text]
end