summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 07:09:24 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 07:09:24 +0000
commitc9b41d57ce18953ff1839524d78168585a9f25d5 (patch)
tree45bd04ce75f87ea549aacb8f433c35641bc34db2
parente5af89e10d3e8cfbb6e3c5bf305ce19dc8fda258 (diff)
downloadruby-c9b41d57ce18953ff1839524d78168585a9f25d5.tar.gz
ruby-c9b41d57ce18953ff1839524d78168585a9f25d5.tar.xz
ruby-c9b41d57ce18953ff1839524d78168585a9f25d5.zip
* object.c (rb_obj_ivar_set): RDoc updated according to a
suggestion from Brian Candler <B.Candler AT pobox.com>. [ruby-core:10469] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@11963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--object.c10
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 78c0cb61d..ffd675512 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Mar 3 16:09:27 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * object.c (rb_obj_ivar_set): RDoc updated according to a
+ suggestion from Brian Candler <B.Candler AT pobox.com>.
+ [ruby-core:10469]
+
Sat Mar 3 15:41:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if
diff --git a/object.c b/object.c
index 3719817d8..706455713 100644
--- a/object.c
+++ b/object.c
@@ -1966,10 +1966,12 @@ rb_obj_public_methods(argc, argv, obj)
/*
* call-seq:
* obj.instance_variable_get(symbol) => obj
- *
- * Returns the value of the given instance variable (or throws a
- * <code>NameError</code> exception). The <code>@</code> part of the
- * variable name should be included for regular instance variables
+ *
+ * Returns the value of the given instance variable, or nil if the
+ * instance variable is not set. The <code>@</code> part of the
+ * variable name should be included for regular instance
+ * variables. Throws a <code>NameError</code> exception if the
+ * supplied symbol is not valid as an instance variable name.
*
* class Fred
* def initialize(p1, p2)