[前][次][番号順一覧][スレッド一覧]

ruby-changes:61662

From: Jean <ko1@a...>
Date: Thu, 11 Jun 2020 09:49:40 +0900 (JST)
Subject: [ruby-changes:61662] f48fce4981 (master): Fix a typo in instance_variable_set documentation

https://git.ruby-lang.org/ruby.git/commit/?id=f48fce4981

From f48fce4981574f7df33982eb901c94e8f4d6d4ab Mon Sep 17 00:00:00 2001
From: Jean byroot Boussier <jean.boussier+github@s...>
Date: Wed, 10 Jun 2020 23:54:15 +0200
Subject: Fix a typo in instance_variable_set documentation


diff --git a/object.c b/object.c
index f24fee8..dafbcd0 100644
--- a/object.c
+++ b/object.c
@@ -2957,7 +2957,7 @@ rb_obj_ivar_get(VALUE obj, VALUE iv) https://github.com/ruby/ruby/blob/trunk/object.c#L2957
  *     obj.instance_variable_set(string, obj)    -> obj
  *
  *  Sets the instance variable named by <i>symbol</i> to the given
- *  object. This may circumvent the the encapsulation intended by
+ *  object. This may circumvent the encapsulation intended by
  *  the author of the class, so it should be used with care.
  *  The variable does not have to exist prior to this call.
  *  If the instance variable name is passed as a string, that string
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]