From 29c3cb6d2061d2d476ef50066b44a5596dd51d99 Mon Sep 17 00:00:00 2001 From: ocean Date: Fri, 9 Jul 2004 13:38:34 +0000 Subject: [PATCH] * array.c, enum.c, pack.c: rdoc patch from Johan Holmberg [ruby-core:3132] [ruby-core:3136] * numeric.c: rdoc patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ array.c | 1 + enum.c | 2 +- numeric.c | 2 +- pack.c | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbbf53c9ba..12085bb7d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Jul 9 22:18:59 Hirokazu Yamamoto + + * array.c, enum.c, pack.c: rdoc patch from Johan Holmberg + [ruby-core:3132] [ruby-core:3136] + + * numeric.c: rdoc patch. + Fri Jul 9 19:26:39 2004 Tanaka Akira * lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to diff --git a/array.c b/array.c index ccdcc3d506..9ba88bda46 100644 --- a/array.c +++ b/array.c @@ -1836,6 +1836,7 @@ rb_get_values_at(obj, olen, argc, argv, func) /* * call-seq: * array.values_at(selector,... ) => an_array + * * Returns an array containing the elements in * _self_ corresponding to the given selector(s). The selectors * may be either integer indices or ranges. diff --git a/enum.c b/enum.c index 3ef697cccb..08a1fde747 100644 --- a/enum.c +++ b/enum.c @@ -806,7 +806,7 @@ each_with_index_i(val, memo) /* * call-seq: - * enum.each_with_index {|obj, i| block } -> nil + * enum.each_with_index {|obj, i| block } -> enum * * Calls block with two arguments, the item and its index, for * each item in enum. diff --git a/numeric.c b/numeric.c index 1c89e11806..45f0b28b72 100644 --- a/numeric.c +++ b/numeric.c @@ -224,7 +224,7 @@ num_uplus(num) /* * call-seq: - * --num => numeric + * -num => numeric * * Unary Minus---Returns the receiver's value, negated. */ diff --git a/pack.c b/pack.c index 2202f7dd8d..fa4f8e3b6a 100644 --- a/pack.c +++ b/pack.c @@ -395,7 +395,7 @@ static unsigned long utf8_to_uv _((char*,long*)); * a.pack("a3a3a3") #=> "a\000\000b\000\000c\000\000" * n.pack("ccc") #=> "ABC" * - * Directives for +pack+. + * Directives for +pack+. * * Directive Meaning * ---------------------------------------------------------------