diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-13 13:29:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-13 13:29:57 +0000 |
commit | 6593c3af8d9490687180ae7f413561a41d5547d5 (patch) | |
tree | ffbc4cd3eea5a0cd6e53b56e68f7559b7e98907e | |
parent | 4663c224fa6c925ce54af32fd1c1cbac9508f5ec (diff) |
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 <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | enum.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -249,13 +249,13 @@ 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 - * (1..100).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> 35 - * (1..100).find { |i| i % 5 == 0 and i % 7 == 0 } #=> 35 + * (1..10).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> nil + * (1..10).find { |i| i % 5 == 0 and i % 7 == 0 } #=> nil + * (1..100).detect { |i| i % 5 == 0 and i % 7 == 0 } #=> 35 + * (1..100).find { |i| i % 5 == 0 and i % 7 == 0 } #=> 35 * */ @@ -2274,13 +2274,13 @@ enum_each_with_index(int argc, VALUE *argv, VALUE obj) * * If no block is given, an enumerator is returned instead. * - * (1..3).reverse_each { |v| p v } + * (1..3).reverse_each { |v| p v } * - * produces: + * produces: * - * 3 - * 2 - * 1 + * 3 + * 2 + * 1 */ static VALUE |