summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-09 08:51:17 (GMT)
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-09 08:51:17 (GMT)
commite23627c047e4c59cd3a8baf3f42bb6a5eddf60d6 (patch)
tree673d0ad217d63350615ce9304f8a7a39caedbda2 /marshal.c
parentd2cc188ad5aecce659127a9c98713e9acd1a97ce (diff)
* marshal.c: [DOC] Wordsmith marshal.c documentation. by @vipulnsward [fix GH-470]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/marshal.c b/marshal.c
index 80f8ba7..2fe2721 100644
--- a/marshal.c
+++ b/marshal.c
@@ -910,11 +910,11 @@ io_needed(void)
*
* 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)
* 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.