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

ruby-changes:32015

From: hsbt <ko1@a...>
Date: Mon, 9 Dec 2013 17:51:21 +0900 (JST)
Subject: [ruby-changes:32015] hsbt:r44094 (trunk): * marshal.c: [DOC] Wordsmith marshal.c documentation. by @vipulnsward [fix GH-470]

hsbt	2013-12-09 17:51:17 +0900 (Mon, 09 Dec 2013)

  New Revision: 44094

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44094

  Log:
    * marshal.c: [DOC] Wordsmith marshal.c documentation. by @vipulnsward [fix GH-470]

  Modified files:
    trunk/marshal.c
Index: marshal.c
===================================================================
--- marshal.c	(revision 44093)
+++ marshal.c	(revision 44094)
@@ -910,11 +910,11 @@ io_needed(void) https://github.com/ruby/ruby/blob/trunk/marshal.c#L910
  *
  * Marshal can't dump following objects:
  * * anonymous Class/Module.
- * * objects which related to its system (ex: Dir, File::Stat, IO, File, Socket
+ * * objects which are related to system (ex: Dir, File::Stat, IO, File, Socket
  *   and so on)
  * * an instance of MatchData, Data, Method, UnboundMethod, Proc, Thread,
  *   ThreadGroup, Continuation
- * * objects which defines singleton methods
+ * * objects which define singleton methods
  */
 static VALUE
 marshal_dump(int argc, VALUE *argv)
@@ -1917,8 +1917,8 @@ clear_load_arg(struct load_arg *arg) https://github.com/ruby/ruby/blob/trunk/marshal.c#L1917
  * Returns the result of converting the serialized data in source into a
  * Ruby object (possibly with associated subordinate objects). source
  * may be either an instance of IO or an object that responds to
- * to_str. If proc is specified, it will be passed each object as it
- * is deserialized.
+ * to_str. If proc is specified, each object will be passed to the proc, as the object
+ * is being deserialized.
  *
  * Never pass untrusted data (including user supplied input) to this method.
  * Please see the overview for further details.

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

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