summaryrefslogtreecommitdiffstats
path: root/lib/debug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-09 04:53:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-09 04:53:16 +0000
commit7dff2acd8ec0eb60a51f99711a0c32b436c2ace0 (patch)
tree6b6bb0a6ce9e46b326dbde9378c3791a54be1dd5 /lib/debug.rb
parenta1b4737bf859b28857b5c4715348fc986ecbad80 (diff)
downloadruby-7dff2acd8ec0eb60a51f99711a0c32b436c2ace0.tar.gz
ruby-7dff2acd8ec0eb60a51f99711a0c32b436c2ace0.tar.xz
ruby-7dff2acd8ec0eb60a51f99711a0c32b436c2ace0.zip
2000-05-09
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 8af0aab96..2f61e8da3 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -1,5 +1,5 @@
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
-# Copyright (C) 2000 Information-technology Promotion Agancy, Japan
+# Copyright (C) 2000 Information-technology Promotion Agency, Japan
if $SAFE > 0
STDERR.print "-r debug.rb is not available in safe mode\n"
@@ -526,7 +526,7 @@ EOHELP
end
def debug_funcname(id)
- if id == 0
+ if id.nil?
"toplevel"
else
id.id2name