mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
810775bb20
commit
0ff9cf3625
1 changed files with 2 additions and 2 deletions
4
enum.c
4
enum.c
|
@ -681,7 +681,7 @@ enum_first(int argc, VALUE *argv, VALUE obj)
|
|||
* +1 depending on the comparison between <i>a</i> and <i>b</i>. As of
|
||||
* Ruby 1.8, the method <code>Enumerable#sort_by</code> implements a
|
||||
* built-in Schwartzian Transform, useful when key computation or
|
||||
* comparison is expensive..
|
||||
* comparison is expensive.
|
||||
*
|
||||
* %w(rhea kea flea).sort #=> ["flea", "kea", "rhea"]
|
||||
* (1..10).sort {|a,b| b <=> a} #=> [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
|
||||
|
@ -2067,7 +2067,7 @@ chunk_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv)
|
|||
* _initial_state_ argument can be used.
|
||||
* If non-nil value is given,
|
||||
* it is duplicated for each "each" method invocation of the enumerator.
|
||||
* The duplicated object is passed to 2nd argument of the block for "chunk" method..
|
||||
* The duplicated object is passed to 2nd argument of the block for "chunk" method.
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue