[前][次][番号順一覧][スレッド一覧]

ruby-changes:60742

From: gerero20 <ko1@a...>
Date: Sat, 11 Apr 2020 11:23:45 +0900 (JST)
Subject: [ruby-changes:60742] bfe706716f (master): [ci skip] Enumerator doc cleanup

https://git.ruby-lang.org/ruby.git/commit/?id=bfe706716f

From bfe706716f7692f0a672a15a261ffffa25526cb1 Mon Sep 17 00:00:00 2001
From: gerero20 <parrottjonathanc@g...>
Date: Thu, 26 Mar 2020 11:25:22 -0700
Subject: [ci skip] Enumerator doc cleanup

This is my first attempt at a pull request. I was reading the ruby docs
the other day and noticed that the output didn't match the code sample
on the with_object documentation. Inserted spaces to fix it.

diff --git a/enumerator.c b/enumerator.c
index 1a1fd14..9632b02 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -722,9 +722,9 @@ enumerator_with_object_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, memo)) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L722
  *     puts "#{string}: #{x}"
  *   end
  *
- *   # => foo:0
- *   # => foo:1
- *   # => foo:2
+ *   # => foo: 0
+ *   # => foo: 1
+ *   # => foo: 2
  */
 static VALUE
 enumerator_with_object(VALUE obj, VALUE memo)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]