mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixing some minimal formating on enum.c examples
This will fix the formatting shown on detect|find and revese_arch generated by RDoc. [Fix GH-1816] From: Espartaco Palma <esparta@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4663c224fa
commit
6593c3af8d
1 changed files with 11 additions and 11 deletions
4
enum.c
4
enum.c
|
@ -249,8 +249,8 @@ find_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop))
|
|||
*
|
||||
* If no block is given, an enumerator is returned instead.
|
||||
*
|
||||
* (1..100).detect => #<Enumerator: 1..100:detect>
|
||||
* (1..100).find => #<Enumerator: 1..100:find>
|
||||
* (1..100).detect #=> #<Enumerator: 1..100:detect>
|
||||
* (1..100).find #=> #<Enumerator: 1..100:find>
|
||||
*
|
||||
* (1..10).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> nil
|
||||
* (1..10).find { |i| i % 5 == 0 and i % 7 == 0 } #=> nil
|
||||
|
|
Loading…
Reference in a new issue