summaryrefslogtreecommitdiff
path: root/eval.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
commit861219ce4a8c91a6d94c0d138c2f2bf2b3c2337e (patch)
treeaf62e80ee75bdbc02137390728ac6ebb2375231e /eval.c
parent0d3f9dbfe1ab1696d1c9b1ef46c9da4af786e629 (diff)
fix doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/eval.c b/eval.c
index cd65803273..95b3a0371e 100644
--- a/eval.c
+++ b/eval.c
@@ -1979,12 +1979,12 @@ specific_eval(int argc, VALUE *argv, VALUE klass, VALUE self)
* parameters supply a filename and starting line number that are used
* when reporting compilation errors.
*
- * class Klass
+ * class KlassWithSecret
* def initialize
* @secret = 99
* end
* end
- * k = Klass.new
+ * k = KlassWithSecret.new
* k.instance_eval { @secret } #=> 99
*/
@@ -2011,12 +2011,12 @@ rb_obj_instance_eval(int argc, VALUE *argv, VALUE self)
* to _obj_ while the code is executing, giving the code access to
* _obj_'s instance variables. Arguments are passed as block parameters.
*
- * class Klass
+ * class KlassWithSecret
* def initialize
* @secret = 99
* end
* end
- * k = Klass.new
+ * k = KlassWithSecret.new
* k.instance_exec(5) {|x| @secret+x } #=> 104
*/
@@ -2172,7 +2172,7 @@ rb_mod_protected(int argc, VALUE *argv, VALUE module)
* def c() end
* private :a
* end
- * Mod.private_instance_methods #=> ["a", "c"]
+ * Mod.private_instance_methods #=> [:a, :c]
*/
static VALUE