summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-09 01:04:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-09 01:04:46 +0000
commit27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f (patch)
treeaf62e80ee75bdbc02137390728ac6ebb2375231e /variable.c
parent94faf2cb81ca64615817255df4a022cb659d6875 (diff)
downloadruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.tar.gz
ruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.tar.xz
ruby-27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f.zip
fix doc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/variable.c b/variable.c
index 6c0ff1b3f..385831b08 100644
--- a/variable.c
+++ b/variable.c
@@ -707,7 +707,7 @@ gvar_i(ID key, struct global_entry *entry, VALUE ary)
*
* Returns an array of the names of global variables.
*
- * global_variables.grep /std/ #=> ["$stderr", "$stdout", "$stdin"]
+ * global_variables.grep /std/ #=> [:$stdin, :$stdout, :$stderr]
*/
VALUE
@@ -1163,7 +1163,7 @@ ivar_i(ID key, VALUE val, VALUE ary)
* @iv = 3
* end
* end
- * Fred.new.instance_variables #=> ["@iv"]
+ * Fred.new.instance_variables #=> [:@iv]
*/
VALUE
@@ -1868,8 +1868,8 @@ cv_i(ID key, VALUE value, VALUE ary)
* class Two < One
* @@var2 = 2
* end
- * One.class_variables #=> ["@@var1"]
- * Two.class_variables #=> ["@@var2"]
+ * One.class_variables #=> [:@@var1]
+ * Two.class_variables #=> [:@@var2]
*/
VALUE