summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-27 01:10:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-27 01:10:30 +0900
commitc452fe17ac679b4171c7de4f4004d61790828ba8 (patch)
tree666915fc8e07ab316c774b43218d63164b8366b0 /doc/syntax
parent550a49c913f67aba8b89bccd8e4b3296a5c3f599 (diff)
[Bug #20087] [DOC] Uninitialized instance variable is not warned now
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/assignment.rdoc4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/syntax/assignment.rdoc b/doc/syntax/assignment.rdoc
index e30cb35adf..f45f5bc0ea 100644
--- a/doc/syntax/assignment.rdoc
+++ b/doc/syntax/assignment.rdoc
@@ -162,9 +162,7 @@ Here is an example of instance variable usage:
p object1.value # prints "some value"
p object2.value # prints "other value"
-An uninitialized instance variable has a value of +nil+. If you run Ruby with
-warnings enabled, you will get a warning when accessing an uninitialized
-instance variable.
+An uninitialized instance variable has a value of +nil+.
The +value+ method has access to the value set by the +initialize+ method, but
only for the same object.